summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/Services.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/PluginUpdater/src/Services.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/PluginUpdater/src/Services.cpp')
-rw-r--r--plugins/PluginUpdater/src/Services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PluginUpdater/src/Services.cpp b/plugins/PluginUpdater/src/Services.cpp
index 698fac6021..ab8c744c9f 100644
--- a/plugins/PluginUpdater/src/Services.cpp
+++ b/plugins/PluginUpdater/src/Services.cpp
@@ -23,7 +23,7 @@ static INT_PTR srvParseHashes(WPARAM wParam, LPARAM lParam)
{
LPCTSTR ptszUrl = (LPCTSTR)wParam;
LPTSTR ptszBaseUrl = (LPTSTR)lParam;
- if (ptszUrl == NULL || ptszBaseUrl == NULL)
+ if (ptszUrl == nullptr || ptszBaseUrl == nullptr)
return NULL;
SERVLIST *pList = new SERVLIST(50, CompareHashes);
@@ -48,13 +48,13 @@ static INT_PTR srvFreeHashes(WPARAM, LPARAM lParam)
static INT_PTR srvGetHashCount(WPARAM, LPARAM lParam)
{
SERVLIST *pList = (SERVLIST*)lParam;
- return (pList == NULL) ? 0 : pList->getCount();
+ return (pList == nullptr) ? 0 : pList->getCount();
}
static INT_PTR srvGetNthHash(WPARAM wParam, LPARAM lParam)
{
SERVLIST *pList = (SERVLIST*)lParam;
- return (pList == NULL) ? 0 : INT_PTR(&(*pList)[wParam]);
+ return (pList == nullptr) ? 0 : INT_PTR(&(*pList)[wParam]);
}
void InitServices()