From 95dab4301d20840d80d9b8f8c7caa6c341e56eee Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 24 Mar 2022 08:11:29 +0100 Subject: [PATCH] using c++11 --- src/dialogs/QskDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialogs/QskDialog.cpp b/src/dialogs/QskDialog.cpp index e8913895..f243c3fb 100644 --- a/src/dialogs/QskDialog.cpp +++ b/src/dialogs/QskDialog.cpp @@ -47,7 +47,7 @@ static QskDialog::Action qskActionCandidate( const QskDialogButtonBox* buttonBox static QskDialog::DialogCode qskExec( QskDialogWindow* dialogWindow ) { #if 1 - QskFocusIndicator* focusIndicator = new QskFocusIndicator(); + auto focusIndicator = new QskFocusIndicator(); focusIndicator->setObjectName( QStringLiteral( "DialogFocusIndicator" ) ); dialogWindow->addItem( focusIndicator ); #endif @@ -60,7 +60,7 @@ static QQuickWindow* qskSomeQuickWindow() // not the best code ever, but as it is a fallback only // maybe we should also add the stacking order - QWindowList windows = QGuiApplication::topLevelWindows(); + const auto windows = QGuiApplication::topLevelWindows(); for ( auto window : windows ) { if ( window->isVisible() )