summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 15:32:06 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:46 +0100
commit1c0172cca4f1e90679321912e20436a7f42f122d (patch)
tree77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /plugins/Alarms/src
parentdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff)
more nullptr
Diffstat (limited to 'plugins/Alarms/src')
-rwxr-xr-xplugins/Alarms/src/alarmlist.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Alarms/src/alarmlist.h b/plugins/Alarms/src/alarmlist.h
index a18b8a4aa1..f1bb2f61d0 100755
--- a/plugins/Alarms/src/alarmlist.h
+++ b/plugins/Alarms/src/alarmlist.h
@@ -20,7 +20,7 @@ static bool operator<(const ALARM &a1, const ALARM &a2) {
class AlarmList {
public:
- AlarmList(): head(0), tail(0), count(0) {}
+ AlarmList(): head(nullptr), tail(nullptr), count(0) {}
virtual ~AlarmList() {clear();}
@@ -50,7 +50,7 @@ public:
delete current;
}
count = 0;
- tail = 0;
+ tail = nullptr;
reset();
}
@@ -67,7 +67,7 @@ public:
}
void reset() {it_current = head;}
- ALARM *current() {return (it_current ? &it_current->alarm : 0);}
+ ALARM *current() {return (it_current ? &it_current->alarm : nullptr);}
void next() {it_current = it_current->next;}
void erase() {
if (it_current) {
@@ -101,7 +101,7 @@ public:
protected:
class Node {
public:
- Node(): next(0), prev(0) {}
+ Node(): next(nullptr), prev(nullptr) {}
ALARM alarm;
Node *next, *prev;
};