forked from qt-creator/qt-creator
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:
@@ -405,7 +405,7 @@ void ModelPrivate::notifyNodeInstanceViewLast(Callable call)
|
|||||||
resetModel = true;
|
resetModel = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (QPointer<AbstractView> view : enabledViews()) {
|
for (const QPointer<AbstractView> &view : enabledViews()) {
|
||||||
if (!view->isBlockingNotifications())
|
if (!view->isBlockingNotifications())
|
||||||
call(view.data());
|
call(view.data());
|
||||||
}
|
}
|
||||||
@@ -434,7 +434,7 @@ void ModelPrivate::notifyNormalViewsLast(Callable call)
|
|||||||
if (nodeInstanceView() && !nodeInstanceView()->isBlockingNotifications())
|
if (nodeInstanceView() && !nodeInstanceView()->isBlockingNotifications())
|
||||||
call(nodeInstanceView());
|
call(nodeInstanceView());
|
||||||
|
|
||||||
for (QPointer<AbstractView> view : enabledViews()) {
|
for (const QPointer<AbstractView> &view : enabledViews()) {
|
||||||
if (!view->isBlockingNotifications())
|
if (!view->isBlockingNotifications())
|
||||||
call(view.data());
|
call(view.data());
|
||||||
}
|
}
|
||||||
@@ -446,7 +446,7 @@ void ModelPrivate::notifyNormalViewsLast(Callable call)
|
|||||||
template<typename Callable>
|
template<typename Callable>
|
||||||
void ModelPrivate::notifyInstanceChanges(Callable call)
|
void ModelPrivate::notifyInstanceChanges(Callable call)
|
||||||
{
|
{
|
||||||
for (QPointer<AbstractView> view : enabledViews()) {
|
for (const QPointer<AbstractView> &view : enabledViews()) {
|
||||||
if (!view->isBlockingNotifications())
|
if (!view->isBlockingNotifications())
|
||||||
call(view.data());
|
call(view.data());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user