Commit 77070354 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Eike Ziller
Browse files

QMutableMapIterator uses map in destructor, use foreach.

Change-Id: Ie8737acaea614fdda66cb7642eaed21be41cae64
Reviewed-by: default avatarPeter Kümmel <>
Reviewed-by: default avatarEike Ziller <>
parent b4a2612e
......@@ -111,12 +111,9 @@ SideBar::SideBar(QList<SideBarItem*> itemList,
QMutableMapIterator<QString, QWeakPointer<SideBarItem> > iter(d->m_itemMap);
while(iter.hasNext()) {;
if (!iter.value().isNull())
delete iter.value().data();
foreach (const QWeakPointer<SideBarItem> &i, d->m_itemMap)
if (!i.isNull())
delete d;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment