summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/Locale.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/Quotes/src/Locale.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Quotes/src/Locale.cpp')
-rw-r--r--plugins/Quotes/src/Locale.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Quotes/src/Locale.cpp b/plugins/Quotes/src/Locale.cpp
index ae79f71eb6..43493fb127 100644
--- a/plugins/Quotes/src/Locale.cpp
+++ b/plugins/Quotes/src/Locale.cpp
@@ -8,10 +8,10 @@ const std::locale GetSystemLocale()
tstring get_int_registry_value(LPCTSTR pszValueName)
{
tstring sResult;
- HKEY hKey = NULL;
+ HKEY hKey = nullptr;
LONG lResult = ::RegOpenKeyEx(HKEY_CURRENT_USER,
L"Control Panel\\International", 0, KEY_QUERY_VALUE, &hKey);
- if ((ERROR_SUCCESS == lResult) && (NULL != hKey)) {
+ if ((ERROR_SUCCESS == lResult) && (nullptr != hKey)) {
DWORD dwType = 0;
DWORD dwSize = 0;
lResult = ::RegQueryValueEx(hKey, pszValueName, nullptr, &dwType, nullptr, &dwSize);
@@ -23,7 +23,7 @@ tstring get_int_registry_value(LPCTSTR pszValueName)
}
}
- if (NULL != hKey) {
+ if (nullptr != hKey) {
lResult = ::RegCloseKey(hKey);
assert(ERROR_SUCCESS == lResult);
}