From 0280b7eb96d82815c4f60e7300183ccb14c5d6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Tue, 17 Jan 2023 10:48:23 +0100 Subject: Painting examples: Don't mix const_iterator and non-const iterators Reported by Clazy Pick-to: 6.5 Change-Id: I80fce912b1e5390f0056b1fa9ae0d3cfcf39d045 Reviewed-by: Oliver Eftevaag --- examples/widgets/painting/shared/hoverpoints.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widgets/painting/shared/hoverpoints.cpp b/examples/widgets/painting/shared/hoverpoints.cpp index 87e1eb4415..a9f76084e1 100644 --- a/examples/widgets/painting/shared/hoverpoints.cpp +++ b/examples/widgets/painting/shared/hoverpoints.cpp @@ -163,7 +163,7 @@ bool HoverPoints::eventFilter(QObject *object, QEvent *event) case QEventPoint::Released: { // move the point and release - const auto it = m_fingerPointMapping.find(id); + const auto it = m_fingerPointMapping.constFind(id); movePoint(it.value(), point.position()); m_fingerPointMapping.erase(it); } -- cgit v1.2.3