aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/spellchecker/libkvispellchecker.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/spellchecker/libkvispellchecker.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/spellchecker/libkvispellchecker.cpp')
-rw-r--r--src/modules/spellchecker/libkvispellchecker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/spellchecker/libkvispellchecker.cpp b/src/modules/spellchecker/libkvispellchecker.cpp
index 55cb3f19c..d87e641ea 100644
--- a/src/modules/spellchecker/libkvispellchecker.cpp
+++ b/src/modules/spellchecker/libkvispellchecker.cpp
@@ -28,8 +28,8 @@
#include <enchant.h>
#include <enchant-provider.h>
-static EnchantBroker * g_pEnchantBroker = NULL;
-static KviPointerList<EnchantDict> * g_pEnchantDicts = NULL;
+static EnchantBroker * g_pEnchantBroker = nullptr;
+static KviPointerList<EnchantDict> * g_pEnchantDicts = nullptr;
/*
@doc: spellchecker.available_dictionaries
@@ -208,9 +208,9 @@ static bool spellchecker_module_cleanup(KviModule *)
enchant_broker_free_dict(g_pEnchantBroker, g_pEnchantDicts->takeFirst());
delete g_pEnchantDicts;
- g_pEnchantDicts = NULL;
+ g_pEnchantDicts = nullptr;
enchant_broker_free(g_pEnchantBroker);
- g_pEnchantBroker = NULL;
+ g_pEnchantBroker = nullptr;
return true;
}