Commit 6dc93890 authored by David Faure's avatar David Faure

kwin: fix compilation error with strict iterators

Summary: After insert(), image seems to be set already, no need to copy it again?

Test Plan: Builds

Reviewers: apol

Reviewed By: apol

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D28578
parent 77782efc
......@@ -1306,9 +1306,10 @@ void WaylandCursorImage::loadThemeCursor(const T &shape, QHash<T, Image> &cursor
auto it = cursors.constFind(shape);
if (it == cursors.constEnd()) {
loadThemeCursor(shape, image);
it = cursors.insert(shape, *image);
cursors.insert(shape, *image);
} else {
*image = it.value();
}
*image = it.value();
}
void CursorImage::reevaluteSource()
......
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