aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/libkviraweditor.cpp
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/raweditor/libkviraweditor.cpp
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/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;
}