From 505d0768f8392e3c4775425dd97f41e1c829ef44 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 30 Apr 2016 18:23:42 +0100 Subject: Apply clang-tidy: modernize-use-nullptr --- src/modules/chan/libkvichan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/chan/libkvichan.cpp') 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 -- cgit v1.3.1-10-gc9f91