[tabbox] Fix cleanup of TabBoxHandlerPrivate
Iterating from constBegin to constBegin doesn't make any sense m(
This commit is contained in:
parent
14c5637d68
commit
3cd932f441
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue