Commit e2d6f088 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use raw pointer instead of QPointer to track watchers

Using QPointer comes with a significant overhead since operator== performs internal syncronization

It's also not needed since the objects are removed when destroyed

(cherry picked from commit 7465c60b)
parent d7910c79
Pipeline #134441 passed with stage
in 34 seconds
......@@ -184,7 +184,7 @@ public:
KColorScheme buttonScheme;
QVector<QPointer<PlasmaDesktopTheme>> watchers;
QVector<PlasmaDesktopTheme *> watchers;
private:
QHash<QPair<Kirigami::PlatformTheme::ColorSet, QPalette::ColorGroup>, Colors> m_cache;
......
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