summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opttree.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-23 15:17:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-23 15:17:45 +0300
commit3d977685e7dbc7b1f5fa3264c8a014b5b5d5ec43 (patch)
tree3be179d8a33dd4ab623d330f628ef09f078f3fa4 /protocols/JabberG/src/jabber_opttree.cpp
parent475debe8c34567137be9c1fd2252ed8816c6da31 (diff)
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_opttree.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opttree.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_opttree.cpp b/protocols/JabberG/src/jabber_opttree.cpp
index f7dc114ba8..dc067efb28 100644
--- a/protocols/JabberG/src/jabber_opttree.cpp
+++ b/protocols/JabberG/src/jabber_opttree.cpp
@@ -93,7 +93,7 @@ void CCtrlTreeOpts::OnInit()
wchar_t itemName[1024];
HIMAGELIST hImgLst;
- SelectItem(NULL);
+ SelectItem(nullptr);
DeleteAllItems();
hImgLst = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR | ILC_COLOR32 | ILC_MASK, 5, 1);
@@ -111,7 +111,7 @@ void CCtrlTreeOpts::OnInit()
wchar_t *sectionName;
int sectionLevel = 0;
- HTREEITEM hSection = NULL;
+ HTREEITEM hSection = nullptr;
mir_wstrcpy(itemName, m_options[i]->m_szOptionName);
sectionName = itemName;
@@ -163,7 +163,7 @@ void CCtrlTreeOpts::OnInit()
TranslateTree();
ShowWindow(m_hwnd, SW_SHOW);
- SelectItem(FindNamedItem(0, NULL));
+ SelectItem(FindNamedItem(0, nullptr));
}
void CCtrlTreeOpts::OnDestroy()
@@ -226,7 +226,7 @@ void CCtrlTreeOpts::ProcessItemClick(HTREEITEM hti)
}
CCtrlTreeOpts::COptionsItem::COptionsItem(wchar_t *szOption, CMOption<BYTE> &option) :
-m_option(&option), m_groupId(OPTTREE_CHECK), m_hItem(NULL)
+m_option(&option), m_groupId(OPTTREE_CHECK), m_hItem(nullptr)
{
m_szOptionName = mir_wstrdup(szOption);
}