From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/Rate/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Rate/src') 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); } -- cgit v1.2.3