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 /src/core/stdemail | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'src/core/stdemail')
-rw-r--r-- | src/core/stdemail/src/email.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdemail/src/email.cpp b/src/core/stdemail/src/email.cpp index a5f36e95ea..66f42ce61d 100644 --- a/src/core/stdemail/src/email.cpp +++ b/src/core/stdemail/src/email.cpp @@ -27,7 +27,7 @@ static HGENMENU hEMailMenuItem; void SendEmailThread(void *szUrl)
{
- ShellExecuteA(NULL, "open", (char*)szUrl, "", "", SW_SHOW);
+ ShellExecuteA(nullptr, "open", (char*)szUrl, "", "", SW_SHOW);
mir_free(szUrl);
return;
}
@@ -36,7 +36,7 @@ static INT_PTR SendEMailCommand(WPARAM hContact, LPARAM lParam) {
DBVARIANT dbv;
char *szProto = GetContactProto(hContact);
- if (szProto == NULL || db_get_s(hContact, szProto, "e-mail", &dbv)) {
+ if (szProto == nullptr || db_get_s(hContact, szProto, "e-mail", &dbv)) {
if (db_get_s(hContact, "UserInfo", "Mye-mail0", &dbv)) {
MessageBox((HWND)lParam, TranslateT("User has not registered an e-mail address"), TranslateT("Send e-mail"), MB_OK);
return 1;
@@ -55,7 +55,7 @@ static int EMailPreBuildMenu(WPARAM hContact, LPARAM) bool bEnabled = true;
DBVARIANT dbv = { 0 };
char *szProto = GetContactProto(hContact);
- if (szProto == NULL || db_get_s(hContact, szProto, "e-mail", &dbv))
+ if (szProto == nullptr || db_get_s(hContact, szProto, "e-mail", &dbv))
if (db_get_s(hContact, "UserInfo", "Mye-mail0", &dbv))
bEnabled = false;
|