aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/chan
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:23:42 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:44 +0100
commit505d0768f8392e3c4775425dd97f41e1c829ef44 (patch)
tree55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/chan
parentUpdate my clang-format to 3.8.0 (diff)
downloadKVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/chan')
-rw-r--r--src/modules/chan/libkvichan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/chan/libkvichan.cpp b/src/modules/chan/libkvichan.cpp
index 119339c2d..e1c374f6d 100644
--- a/src/modules/chan/libkvichan.cpp
+++ b/src/modules/chan/libkvichan.cpp
@@ -54,7 +54,7 @@ static KviChannelWindow * chan_kvs_find_channel(KviKvsModuleFunctionCall * c, QS
{
if(!bNoWarnings)
c->warning(__tr2qs("Can't find the window with ID '%Q'"), &szChan);
- return 0;
+ return nullptr;
}
if(w->type() == KviWindow::Channel)
return (KviChannelWindow *)w;
@@ -63,7 +63,7 @@ static KviChannelWindow * chan_kvs_find_channel(KviKvsModuleFunctionCall * c, QS
if(!bNoWarnings)
c->warning(__tr2qs("The specified window (%Q) is not a channel"), &szChan);
}
- return 0;
+ return nullptr;
}
/*
@@ -1925,7 +1925,7 @@ static bool chan_kvs_fnc_common(KviKvsModuleFunctionCall * c)
KVSM_PARAMETER("context_id", KVS_PT_UINT, KVS_PF_OPTIONAL, iContextId)
KVSM_PARAMETERS_END(c)
- KviConsoleWindow * pConsole = NULL;
+ KviConsoleWindow * pConsole = nullptr;
if(c->parameterCount() > 1)
pConsole = g_pApp->findConsole(iContextId);
else