diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_opttree.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_opttree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_opttree.cpp b/protocols/JabberG/src/jabber_opttree.cpp index 2c7582045a..047decb2be 100644 --- a/protocols/JabberG/src/jabber_opttree.cpp +++ b/protocols/JabberG/src/jabber_opttree.cpp @@ -37,8 +37,8 @@ CCtrlTreeOpts::CCtrlTreeOpts(CDlgBase* dlg, int ctrlId): CCtrlTreeOpts::~CCtrlTreeOpts()
{
- for (int i=0; i < m_options.getCount(); i++)
- delete m_options[i];
+ for (auto &it : m_options)
+ delete it;
}
void CCtrlTreeOpts::AddOption(wchar_t *szOption, CMOption<BYTE> &option)
|