diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/SecureIM/src/crypt_icons.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/SecureIM/src/crypt_icons.cpp')
-rw-r--r-- | plugins/SecureIM/src/crypt_icons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SecureIM/src/crypt_icons.cpp b/plugins/SecureIM/src/crypt_icons.cpp index 3d7a74ac46..d0ad9953a5 100644 --- a/plugins/SecureIM/src/crypt_icons.cpp +++ b/plugins/SecureIM/src/crypt_icons.cpp @@ -38,7 +38,7 @@ static ICON_CACHE& getCacheItem(int mode, int type) ICON_CACHE *p = new ICON_CACHE;
p->icon = icon;
p->mode = (type << 8) | mode;
- p->hCLIcon = NULL;
+ p->hCLIcon = nullptr;
arIcoList.insert(p);
return *p;
@@ -55,7 +55,7 @@ HANDLE mode2clicon(int mode, int type) return INVALID_HANDLE_VALUE;
ICON_CACHE &p = getCacheItem(mode, type);
- if (p.hCLIcon == NULL)
+ if (p.hCLIcon == nullptr)
p.hCLIcon = ExtraIcon_AddIcon(p.icon);
return p.hCLIcon;
@@ -107,7 +107,7 @@ void ShowStatusIconNotify(MCONTACT hContact) void RefreshContactListIcons(void)
{
for (int i = 0; i < arIcoList.getCount(); i++)
- arIcoList[i].hCLIcon = 0;
+ arIcoList[i].hCLIcon = nullptr;
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
if (isSecureProtocol(hContact))
|