summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/svcs_menu.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/SecureIM/src/svcs_menu.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/SecureIM/src/svcs_menu.cpp')
-rw-r--r--plugins/SecureIM/src/svcs_menu.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/SecureIM/src/svcs_menu.cpp b/plugins/SecureIM/src/svcs_menu.cpp
index 79c12b0b83..b7f879dbbf 100644
--- a/plugins/SecureIM/src/svcs_menu.cpp
+++ b/plugins/SecureIM/src/svcs_menu.cpp
@@ -61,7 +61,7 @@ INT_PTR __cdecl Service_PGPdelKey(WPARAM wParam, LPARAM)
}
{
pUinKey ptr = getUinKey(wParam);
- cpp_delete_context(ptr->cntx); ptr->cntx = 0;
+ cpp_delete_context(ptr->cntx); ptr->cntx = nullptr;
}
ShowStatusIconNotify(wParam);
return 1;
@@ -84,7 +84,7 @@ INT_PTR __cdecl Service_PGPsetKey(WPARAM wParam, LPARAM lParam)
}
else if (bPGPprivkey) {
char KeyPath[MAX_PATH]; KeyPath[0] = '\0';
- if (ShowSelectKeyDlg(0, KeyPath)) {
+ if (ShowSelectKeyDlg(nullptr, KeyPath)) {
char *publ = LoadKeys(KeyPath, false);
if (publ) {
db_unset(wParam, MODULENAME, "pgp");
@@ -102,7 +102,7 @@ INT_PTR __cdecl Service_PGPsetKey(WPARAM wParam, LPARAM lParam)
Service_PGPdelKey(wParam, lParam);
else {
pUinKey ptr = getUinKey(wParam);
- cpp_delete_context(ptr->cntx); ptr->cntx = 0;
+ cpp_delete_context(ptr->cntx); ptr->cntx = nullptr;
}
ShowStatusIconNotify(wParam);
return 1;
@@ -114,7 +114,7 @@ INT_PTR __cdecl Service_GPGdelKey(WPARAM wParam, LPARAM)
db_unset(wParam, MODULENAME, "gpg");
{
pUinKey ptr = getUinKey(wParam);
- cpp_delete_context(ptr->cntx); ptr->cntx = 0;
+ cpp_delete_context(ptr->cntx); ptr->cntx = nullptr;
}
ShowStatusIconNotify(wParam);
return 1;
@@ -136,7 +136,7 @@ INT_PTR __cdecl Service_GPGsetKey(WPARAM wParam, LPARAM lParam)
Service_GPGdelKey(wParam, lParam);
else {
pUinKey ptr = getUinKey(wParam);
- cpp_delete_context(ptr->cntx); ptr->cntx = 0;
+ cpp_delete_context(ptr->cntx); ptr->cntx = nullptr;
}
ShowStatusIconNotify(wParam);
return 1;
@@ -150,7 +150,7 @@ INT_PTR __cdecl Service_Mode(WPARAM wParam, LPARAM lParam)
case MODE_NATIVE:
case MODE_RSAAES:
if (isContactSecured(wParam)&SECURED) {
- msgbox(NULL, sim111, MODULENAME, MB_OK);
+ msgbox(nullptr, sim111, MODULENAME, MB_OK);
return 0;
}
if (lParam != MODE_NATIVE && ptr->status > STATUS_ENABLED)
@@ -162,7 +162,7 @@ INT_PTR __cdecl Service_Mode(WPARAM wParam, LPARAM lParam)
if (ptr) {
if (ptr->cntx) {
cpp_delete_context(ptr->cntx);
- ptr->cntx = 0;
+ ptr->cntx = nullptr;
ptr->keyLoaded = 0;
}
ptr->mode = (BYTE)lParam;