QmlDesigner: Fix warnings

Change-Id: I5e8774223d124f594fc93d83cac1ac37a8bc34e9
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Thomas Hartmann
2022-07-19 20:06:07 +02:00
parent fa29dcb1cd
commit 2984934af9

View File

@@ -405,7 +405,7 @@ void ModelPrivate::notifyNodeInstanceViewLast(Callable call)
resetModel = true;
}
for (QPointer<AbstractView> view : enabledViews()) {
for (const QPointer<AbstractView> &view : enabledViews()) {
if (!view->isBlockingNotifications())
call(view.data());
}
@@ -434,7 +434,7 @@ void ModelPrivate::notifyNormalViewsLast(Callable call)
if (nodeInstanceView() && !nodeInstanceView()->isBlockingNotifications())
call(nodeInstanceView());
for (QPointer<AbstractView> view : enabledViews()) {
for (const QPointer<AbstractView> &view : enabledViews()) {
if (!view->isBlockingNotifications())
call(view.data());
}
@@ -446,7 +446,7 @@ void ModelPrivate::notifyNormalViewsLast(Callable call)
template<typename Callable>
void ModelPrivate::notifyInstanceChanges(Callable call)
{
for (QPointer<AbstractView> view : enabledViews()) {
for (const QPointer<AbstractView> &view : enabledViews()) {
if (!view->isBlockingNotifications())
call(view.data());
}