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:
parent
77782efc1f
commit
6dc938907f
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue