summaryrefslogtreecommitdiff
path: root/plugins/Rate
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/Rate
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Rate')
-rw-r--r--plugins/Rate/src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp
index a461029377..03d440448b 100644
--- a/plugins/Rate/src/main.cpp
+++ b/plugins/Rate/src/main.cpp
@@ -37,7 +37,7 @@
HINSTANCE g_hInst;
-static HANDLE hExtraIcon = NULL;
+static HANDLE hExtraIcon = nullptr;
int hLangpack;
PLUGININFOEX pluginInfo =
@@ -77,14 +77,14 @@ static void setExtraIcon(MCONTACT hContact, int bRate = -1, BOOL clear = TRUE)
if (bRate < 0)
bRate = db_get_b(hContact, "CList", "Rate", 0);
- const char *icon = NULL;
+ const char *icon = nullptr;
switch (bRate) {
case 1: icon = "rate_low"; break;
case 2: icon = "rate_medium"; break;
case 3: icon = "rate_high"; break;
}
- if (icon != NULL || clear)
+ if (icon != nullptr || clear)
ExtraIcon_SetIconByName(hExtraIcon, hContact, icon);
}