summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_userinfo.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/JabberG/src/jabber_userinfo.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/JabberG/src/jabber_userinfo.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_userinfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index 33dff7e34f..13681ceb0f 100755
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -40,7 +40,7 @@ struct UserInfoStringBuf
wchar_t *buf;
size_t size, offset;
- UserInfoStringBuf() { buf = 0; size = 0; offset = 0; }
+ UserInfoStringBuf() { buf = nullptr; size = 0; offset = 0; }
~UserInfoStringBuf() { mir_free(buf); }
void append(wchar_t *str) {
@@ -151,7 +151,7 @@ void sttCleanupInfo(HWND hwndTree, int stage)
break;
}
- HTREEITEM hItemTmp = 0;
+ HTREEITEM hItemTmp = nullptr;
if (hItemTmp = TreeView_GetChild(hwndTree, hItem))
hItem = hItemTmp;
else if (hItemTmp = TreeView_GetNextSibling(hwndTree, hItem))
@@ -178,7 +178,7 @@ static HTREEITEM sttFillInfoLine(HWND hwndTree, HTREEITEM htiRoot, HICON hIcon,
else
mir_wstrncpy(buf, value, _countof(buf));
- TVINSERTSTRUCT tvis = {0};
+ TVINSERTSTRUCT tvis = {};
tvis.hParent = htiRoot;
tvis.hInsertAfter = TVI_LAST;
tvis.itemex.mask = TVIF_TEXT|TVIF_PARAM;
@@ -505,7 +505,7 @@ static INT_PTR CALLBACK JabberUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa
if (GetWindowLongPtr((HWND)wParam, GWL_ID) == IDC_TV_INFO) {
HWND hwndTree = GetDlgItem(hwndDlg, IDC_TV_INFO);
POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
- HTREEITEM hItem = 0;
+ HTREEITEM hItem = nullptr;
if ((pt.x == -1) && (pt.y == -1)) {
if (hItem = TreeView_GetSelection(hwndTree)) {