summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/token.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 /protocols/Gadu-Gadu/src/token.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Gadu-Gadu/src/token.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/token.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Gadu-Gadu/src/token.cpp b/protocols/Gadu-Gadu/src/token.cpp
index 351b0df053..be13895b5d 100644
--- a/protocols/Gadu-Gadu/src/token.cpp
+++ b/protocols/Gadu-Gadu/src/token.cpp
@@ -76,7 +76,7 @@ INT_PTR CALLBACK gg_tokendlgproc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
if (dat && dat->hBitmap)
{
- HDC hdcBmp = NULL;
+ HDC hdcBmp = nullptr;
int nWidth, nHeight;
BITMAP bmp;
@@ -115,7 +115,7 @@ int GGPROTO::gettoken(GGTOKEN *token)
if (!h || gg_token_watch_fd(h) || h->state == GG_STATE_ERROR || h->state != GG_STATE_DONE) {
wchar_t error[128];
mir_snwprintf(error, TranslateT("Token retrieval failed because of error:\n\t%s"), http_error_string(h ? h->error : 0));
- MessageBox(NULL, error, m_tszUserName, MB_OK | MB_ICONSTOP);
+ MessageBox(nullptr, error, m_tszUserName, MB_OK | MB_ICONSTOP);
gg_free_pubdir(h);
return FALSE;
}
@@ -124,7 +124,7 @@ int GGPROTO::gettoken(GGTOKEN *token)
if (!t || !h->body) {
wchar_t error[128];
mir_snwprintf(error, TranslateT("Token retrieval failed because of error:\n\t%s"), http_error_string(h->error));
- MessageBox(NULL, error, m_tszUserName, MB_OK | MB_ICONSTOP);
+ MessageBox(nullptr, error, m_tszUserName, MB_OK | MB_ICONSTOP);
gg_free_pubdir(h);
return FALSE;
}
@@ -142,15 +142,15 @@ int GGPROTO::gettoken(GGTOKEN *token)
memio.fif = FIF_UNKNOWN; /* detect */
memio.flags = 0;
dat.hBitmap = (HBITMAP) CallService(MS_IMG_LOADFROMMEM, (WPARAM) &memio, 0);
- if (dat.hBitmap == NULL)
+ if (dat.hBitmap == nullptr)
{
- MessageBox(NULL, TranslateT("Could not load token image."), m_tszUserName, MB_OK | MB_ICONSTOP);
+ MessageBox(nullptr, TranslateT("Could not load token image."), m_tszUserName, MB_OK | MB_ICONSTOP);
gg_free_pubdir(h);
return FALSE;
}
// Load token dialog
- if (DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_TOKEN), NULL, gg_tokendlgproc, (LPARAM)&dat) == IDCANCEL)
+ if (DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_TOKEN), nullptr, gg_tokendlgproc, (LPARAM)&dat) == IDCANCEL)
return FALSE;
// Fillup patterns