Painting examples: Don't mix const_iterator and non-const iterators
Reported by Clazy Change-Id: I80fce912b1e5390f0056b1fa9ae0d3cfcf39d045 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 0280b7eb96d82815c4f60e7300183ccb14c5d6f1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
30ad6769cd
commit
08b022bf44
@ -163,7 +163,7 @@ bool HoverPoints::eventFilter(QObject *object, QEvent *event)
|
|||||||
case QEventPoint::Released:
|
case QEventPoint::Released:
|
||||||
{
|
{
|
||||||
// move the point and release
|
// move the point and release
|
||||||
const auto it = m_fingerPointMapping.find(id);
|
const auto it = m_fingerPointMapping.constFind(id);
|
||||||
movePoint(it.value(), point.position());
|
movePoint(it.value(), point.position());
|
||||||
m_fingerPointMapping.erase(it);
|
m_fingerPointMapping.erase(it);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user