diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-15 15:28:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-15 15:28:23 +0300 |
commit | cc2d5db55ce7c1d65d7919c7e7f0ce5c48da26f2 (patch) | |
tree | b23e75abe8f09cd6e45d41f078878271079dedc0 /plugins/helpers/gen_helpers.cpp | |
parent | 73c3207950044c5156bbb74ca2f60fc5b5b2d81a (diff) |
StatusManager: code cleaning
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r-- | plugins/helpers/gen_helpers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 76c7491280..8ad7a2076c 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -24,7 +24,7 @@ wchar_t *Hlp_GetProtocolName(const char *proto) { char protoname[256];
if ((!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
- return NULL;
+ return nullptr;
return mir_a2u(protoname);
@@ -34,7 +34,7 @@ wchar_t *Hlp_GetDlgItemText(HWND hwndDlg, int nIDDlgItem) { int len = SendDlgItemMessage(hwndDlg, nIDDlgItem, WM_GETTEXTLENGTH, 0, 0);
if (len < 0)
- return NULL;
+ return nullptr;
wchar_t *res = (wchar_t*)mir_alloc((len + 1)*sizeof(wchar_t));
memset(res, 0, ((len + 1) * sizeof(wchar_t)));
@@ -47,7 +47,7 @@ wchar_t *Hlp_GetWindowText(HWND hwndDlg) {
int len = GetWindowTextLength(hwndDlg);
if (len < 0)
- return NULL;
+ return nullptr;
wchar_t *res = (wchar_t*)mir_alloc((len + 1)*sizeof(wchar_t));
memset(res, 0, ((len + 1) * sizeof(wchar_t)));
@@ -113,7 +113,7 @@ int AddDebugLogMessage(const wchar_t* fmt, ...) int ttoi(wchar_t *string)
{
- return (string == NULL) ? 0 : _wtoi(string);
+ return (string == nullptr) ? 0 : _wtoi(string);
}
wchar_t *itot(int num)
|