summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/formula.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup/src/formula.h')
-rw-r--r--plugins/Popup/src/formula.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Popup/src/formula.h b/plugins/Popup/src/formula.h
index 6de6ac625d..fdb4612bc1 100644
--- a/plugins/Popup/src/formula.h
+++ b/plugins/Popup/src/formula.h
@@ -36,12 +36,12 @@ public:
int value;
Item *next;
- Item(char *aName, int aValue, Item *aNext) : value(aValue), next(aNext) { name = aName ? mir_strdup(aName) : 0; }
+ Item(char *aName, int aValue, Item *aNext) : value(aValue), next(aNext) { name = aName ? mir_strdup(aName) : nullptr; }
~Item() { if (name) mir_free(name); }
};
Item *items;
public:
- Args() :items(0){}
+ Args() :items(nullptr){}
~Args(){ clear(); }
void add(char *name, int value)
{
@@ -83,7 +83,7 @@ public:
Formula(wchar_t *s) :m_str(mir_wstrdup(s)) {}
~Formula() { mir_free(m_str); }
void set(wchar_t *s){ mir_free(m_str); m_str = mir_wstrdup(s); }
- int eval(Args *args, bool *vars = 0) const;
+ int eval(Args *args, bool *vars = nullptr) const;
};
#endif // __formula_h__ \ No newline at end of file