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
This commit is contained in:
David Faure 2020-04-04 23:11:23 +02:00
parent 77782efc1f
commit 6dc938907f

View file

@ -1306,9 +1306,10 @@ void WaylandCursorImage::loadThemeCursor(const T &shape, QHash<T, Image> &cursor
auto it = cursors.constFind(shape); auto it = cursors.constFind(shape);
if (it == cursors.constEnd()) { if (it == cursors.constEnd()) {
loadThemeCursor(shape, image); loadThemeCursor(shape, image);
it = cursors.insert(shape, *image); cursors.insert(shape, *image);
} else {
*image = it.value();
} }
*image = it.value();
} }
void CursorImage::reevaluteSource() void CursorImage::reevaluteSource()