diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/Quotes/src/DBUtils.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Quotes/src/DBUtils.cpp')
-rw-r--r-- | plugins/Quotes/src/DBUtils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Quotes/src/DBUtils.cpp b/plugins/Quotes/src/DBUtils.cpp index dffcb18c5d..19e8088286 100644 --- a/plugins/Quotes/src/DBUtils.cpp +++ b/plugins/Quotes/src/DBUtils.cpp @@ -4,11 +4,11 @@ std::string Quotes_DBGetStringA(MCONTACT hContact, const char* szModule, const c {
std::string sResult;
char* pszSymbol = db_get_sa(hContact, szModule, szSetting);
- if (NULL != pszSymbol) {
+ if (nullptr != pszSymbol) {
sResult = pszSymbol;
mir_free(pszSymbol);
}
- else if (NULL != pszDefValue)
+ else if (nullptr != pszDefValue)
sResult = pszDefValue;
return sResult;
@@ -18,11 +18,11 @@ std::wstring Quotes_DBGetStringW(MCONTACT hContact, const char* szModule, const {
std::wstring sResult;
wchar_t* pszSymbol = db_get_wsa(hContact, szModule, szSetting);
- if (NULL != pszSymbol) {
+ if (nullptr != pszSymbol) {
sResult = pszSymbol;
mir_free(pszSymbol);
}
- else if (NULL != pszDefValue)
+ else if (nullptr != pszDefValue)
sResult = pszDefValue;
return sResult;
|