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/TabSRMM/src/chat_tools.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat_tools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 2377e9a7e4..29d612b30a 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -158,7 +158,7 @@ BOOL DoPopup(SESSION_INFO *si, GCEVENT *gce) return 0;
}
}
- if (dat && pContainer != 0) { // message window is open, need to check the container config if we want to see a popup nonetheless
+ if (dat && pContainer != nullptr) { // message window is open, need to check the container config if we want to see a popup nonetheless
if (nen_options.bWindowCheck) { // no popups at all for open windows... no exceptions
if (!PluginConfig.m_bHideOnClose)
return 0;
@@ -207,7 +207,7 @@ void DoFlashAndSoundWorker(FLASH_PARAMS *p) if (si == nullptr)
return;
- CTabBaseDlg *dat = 0;
+ CTabBaseDlg *dat = nullptr;
if (si->pDlg) {
dat = si->pDlg;
if (dat) {
@@ -288,7 +288,7 @@ void DoFlashAndSoundWorker(FLASH_PARAMS *p) BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight, int bManyFix)
{
- if (gce == 0 || si == 0 || gce->bIsMe || si->iType == GCW_SERVER)
+ if (gce == nullptr || si == nullptr || gce->bIsMe || si->iType == GCW_SERVER)
return FALSE;
CTabBaseDlg *dat = nullptr;
@@ -565,7 +565,7 @@ bool IsHighlighted(SESSION_INFO *si, GCEVENT *gce) if (si && g_Settings.bLogClassicIndicators) {
size_t len = mir_wstrlen(gce->ptszNick) + 1;
wchar_t *tmp = (wchar_t*)_alloca(sizeof(wchar_t)*(len + 1));
- *tmp = GetIndicator(si, gce->ptszNick, 0);
+ *tmp = GetIndicator(si, gce->ptszNick, nullptr);
mir_wstrcpy(tmp + 1, gce->ptszNick);
evTmp.ptszNick = tmp;
}
|