diff options
| author | 2016-04-30 18:23:42 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | 505d0768f8392e3c4775425dd97f41e1c829ef44 (patch) | |
| tree | 55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/system/Plugin.cpp | |
| parent | Update my clang-format to 3.8.0 (diff) | |
| download | KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2 KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip | |
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/system/Plugin.cpp')
| -rw-r--r-- | src/modules/system/Plugin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/system/Plugin.cpp b/src/modules/system/Plugin.cpp index 29c5db05b..3d579c083 100644 --- a/src/modules/system/Plugin.cpp +++ b/src/modules/system/Plugin.cpp @@ -123,7 +123,7 @@ Plugin * Plugin::load(const QString & szFileName) if(!pLibrary->load()) { delete pLibrary; - return 0; + return nullptr; } Plugin * pPlugin = new Plugin(pLibrary, KviFileUtils::extractFileName(szFileName)); @@ -279,7 +279,7 @@ bool PluginManager::pluginCall(KviKvsModuleFunctionCall * c) pArgvBuffer = (char *)malloc(iSize); i = 2; - char * x = 0; + char * x = nullptr; x = pArgvBuffer; while(i < (iArgc + 2)) { @@ -296,8 +296,8 @@ bool PluginManager::pluginCall(KviKvsModuleFunctionCall * c) else { //Avoid using unfilled variables - ppArgv = 0; - pArgvBuffer = 0; + ppArgv = nullptr; + pArgvBuffer = nullptr; iArgc = 0; } @@ -414,7 +414,7 @@ bool PluginManager::loadPlugin(const QString & szPluginPath) { if(isPluginLoaded(szPluginPath)) { - return getPlugin(szPluginPath) != 0; + return getPlugin(szPluginPath) != nullptr; } else { |
