aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/libkviraweditor.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
committerGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
commitfe375f69972cd912739c0d68fa4951d35de90e5e (patch)
tree71bd2c2b59d6be62d7c18588a417e5aa39ab233c /src/modules/raweditor/libkviraweditor.cpp
parentlibkvidcc: fix $dcc.currentSpeed documentation add missing @short and fix rig... (diff)
parentApply clang-tidy: modernize-loop-convert (diff)
downloadKVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.gz
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.bz2
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.zip
Merge pull request #1962 from DarthGandalf/modernize
Apply several fixes of clang-tidy
Diffstat (limited to 'src/modules/raweditor/libkviraweditor.cpp')
-rw-r--r--src/modules/raweditor/libkviraweditor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/raweditor/libkviraweditor.cpp b/src/modules/raweditor/libkviraweditor.cpp
index acfc7ea86..5670771d4 100644
--- a/src/modules/raweditor/libkviraweditor.cpp
+++ b/src/modules/raweditor/libkviraweditor.cpp
@@ -28,7 +28,7 @@
#include "KviLocale.h"
#include "KviMainWindow.h"
-RawEditorWindow * g_pRawEditorWindow = 0;
+RawEditorWindow * g_pRawEditorWindow = nullptr;
/*
@doc: raweditor.open
@@ -58,20 +58,20 @@ static bool raweditor_kvs_cmd_open(KviKvsModuleCommandCall *)
static bool raweditor_module_init(KviModule * m)
{
KVSM_REGISTER_SIMPLE_COMMAND(m, "open", raweditor_kvs_cmd_open);
- g_pRawEditorWindow = 0;
+ g_pRawEditorWindow = nullptr;
return true;
}
static bool raweditor_module_can_unload(KviModule *)
{
- return (g_pRawEditorWindow == 0);
+ return (g_pRawEditorWindow == nullptr);
}
static bool raweditor_module_cleanup(KviModule *)
{
if(g_pRawEditorWindow && g_pMainWindow)
g_pMainWindow->closeWindow(g_pRawEditorWindow);
- g_pRawEditorWindow = 0;
+ g_pRawEditorWindow = nullptr;
return true;
}