Commit e0088b9c authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Use qDeleteAll in destructor of Scene class

Summary:
qDeleteAll can be used to delete values in QMap or QHash. Please notice
that qDeleteAll calls `delete` only for values, not keys.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13822
parent d82aded4
......@@ -100,9 +100,7 @@ Scene::Scene(QObject *parent)
Scene::~Scene()
{
foreach (Window *w, m_windows) {
delete w;
}
qDeleteAll(m_windows);
}
// returns mask and possibly modified region
......
Markdown is supported
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