[tabbox] Fix cleanup of TabBoxHandlerPrivate

Iterating from constBegin to constBegin doesn't make any sense m(
This commit is contained in:
Martin Gräßlin 2014-05-27 10:08:36 +02:00
parent 14c5637d68
commit 3cd932f441

View file

@ -124,10 +124,10 @@ TabBoxHandlerPrivate::TabBoxHandlerPrivate(TabBoxHandler *q)
TabBoxHandlerPrivate::~TabBoxHandlerPrivate() TabBoxHandlerPrivate::~TabBoxHandlerPrivate()
{ {
for (auto it = m_clientTabBoxes.constBegin(); it != m_clientTabBoxes.constBegin(); ++it) { for (auto it = m_clientTabBoxes.constBegin(); it != m_clientTabBoxes.constEnd(); ++it) {
delete it.value(); delete it.value();
} }
for (auto it = m_desktopTabBoxes.constBegin(); it != m_desktopTabBoxes.constBegin(); ++it) { for (auto it = m_desktopTabBoxes.constBegin(); it != m_desktopTabBoxes.constEnd(); ++it) {
delete it.value(); delete it.value();
} }
} }