summaryrefslogtreecommitdiff
path: root/plugins/NoHistory/src/dllmain.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/NoHistory/src/dllmain.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/NoHistory/src/dllmain.cpp')
-rw-r--r--plugins/NoHistory/src/dllmain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp
index ebf869ffdf..f20a68161b 100644
--- a/plugins/NoHistory/src/dllmain.cpp
+++ b/plugins/NoHistory/src/dllmain.cpp
@@ -24,7 +24,7 @@ struct EventListNode {
EventListNode *next;
};
-EventListNode *event_list = 0;
+EventListNode *event_list = nullptr;
// plugin stuff
PLUGININFOEX pluginInfo =
@@ -59,7 +59,7 @@ void RemoveReadEvents(MCONTACT hContact = 0)
bool remove;
mir_cslock lck(list_cs);
- EventListNode *node = event_list, *prev = 0;
+ EventListNode *node = event_list, *prev = nullptr;
while(node) {
remove = false;
if (hContact == 0 || hContact == node->hContact) {
@@ -133,7 +133,7 @@ int OnDatabaseEventAdd(WPARAM hContact, LPARAM hDBEvent)
INT_PTR ServiceClear(WPARAM hContact, LPARAM)
{
- if (MessageBox(0, TranslateT("This operation will PERMANENTLY REMOVE all history for this contact.\nAre you sure you want to do this?"), TranslateT("Clear History"), MB_YESNO | MB_ICONWARNING) == IDYES)
+ if (MessageBox(nullptr, TranslateT("This operation will PERMANENTLY REMOVE all history for this contact.\nAre you sure you want to do this?"), TranslateT("Clear History"), MB_YESNO | MB_ICONWARNING) == IDYES)
RemoveAllEvents(hContact);
return 0;