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 /protocols/JabberG/src/jabber_privacy.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_privacy.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp index ef1db75054..bff28c6457 100644 --- a/protocols/JabberG/src/jabber_privacy.cpp +++ b/protocols/JabberG/src/jabber_privacy.cpp @@ -431,7 +431,7 @@ public: // append known chatroom jids from bookmarks
LISTFOREACH(i, m_proto, LIST_BOOKMARK)
{
- JABBER_LIST_ITEM *item = 0;
+ JABBER_LIST_ITEM *item = nullptr;
if (item = m_proto->ListGetItemPtrFromIndex(i))
SendDlgItemMessage(m_hwnd, IDC_COMBO_VALUES, CB_ADDSTRING, 0, (LPARAM)item->jid);
}
@@ -648,7 +648,7 @@ protected: CPrivacyList *pList;
- TCLCInfo(): newJids(1, TJidData::cmp), bChanged(false), pList(0) {}
+ TCLCInfo(): newJids(1, TJidData::cmp), bChanged(false), pList(nullptr) {}
~TCLCInfo()
{
for (int i=0; i < newJids.getCount(); i++) {
@@ -667,10 +667,10 @@ protected: HANDLE findJid(wchar_t *jid)
{
- TJidData data = {0};
+ TJidData data = {};
data.jid = jid;
TJidData *found = newJids.find(&data);
- return found ? found->hItem : 0;
+ return found ? found->hItem : nullptr;
}
};
@@ -1374,7 +1374,7 @@ void CJabberDlgPrivacyLists::CListApplyList(HWND hwndList, CPrivacyList *pList) goto lbl_return;
for (CPrivacyListRule *pRule = pList->GetFirstRule(); pRule; pRule = pRule->GetNext()) {
- HANDLE hItem = 0;
+ HANDLE hItem = nullptr;
switch (pRule->GetType()) {
case Jid:
hItem = CListAddContact(hwndList, pRule->GetValue());
|