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
master
David Faure 2020-04-04 23:11:23 +02:00
parent 77782efc1f
commit 6dc938907f
1 changed files with 3 additions and 2 deletions

View File

@ -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()