Commit e0088b9c authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Use qDeleteAll in destructor of Scene class

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:
parent d82aded4
......@@ -100,9 +100,7 @@ Scene::Scene(QObject *parent)
foreach (Window *w, m_windows) {
delete w;
// returns mask and possibly modified region
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