summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opttree.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-17 14:51:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-17 14:51:55 +0300
commitd42f1c7fa5feb305e6f43722d7f36da86d885ed5 (patch)
treeed457b9c4f266fd2dbeb87f500474fe19f6db8da /protocols/JabberG/src/jabber_opttree.cpp
parent99e93a577704f4c59244ff053138bd483b80a709 (diff)
Jabber: massive options code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_opttree.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opttree.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_opttree.cpp b/protocols/JabberG/src/jabber_opttree.cpp
index 84bd684683..46f979bc7d 100644
--- a/protocols/JabberG/src/jabber_opttree.cpp
+++ b/protocols/JabberG/src/jabber_opttree.cpp
@@ -41,7 +41,7 @@ CCtrlTreeOpts::~CCtrlTreeOpts()
delete it;
}
-void CCtrlTreeOpts::AddOption(wchar_t *szOption, CMOption<BYTE> &option)
+void CCtrlTreeOpts::AddOption(wchar_t *szOption, CMOption<bool> &option)
{
m_options.insert(new COptionsItem(szOption, option), m_options.getCount());
}
@@ -226,8 +226,9 @@ void CCtrlTreeOpts::ProcessItemClick(HTREEITEM hti)
SetItem(&tvi);
}
-CCtrlTreeOpts::COptionsItem::COptionsItem(wchar_t *szOption, CMOption<BYTE> &option) :
-m_option(&option), m_groupId(OPTTREE_CHECK), m_hItem(nullptr)
+CCtrlTreeOpts::COptionsItem::COptionsItem(wchar_t *szOption, CMOption<bool> &option) :
+ m_option(&option),
+ m_groupId(OPTTREE_CHECK)
{
m_szOptionName = mir_wstrdup(szOption);
}