From eeb9e04b6062ad427a4df9cd9dc8a33506cddb6f Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 24 Mar 2022 17:30:50 +0100 Subject: [PATCH] making clazy happier --- src/controls/QskWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controls/QskWindow.cpp b/src/controls/QskWindow.cpp index 58225125..7e853324 100644 --- a/src/controls/QskWindow.cpp +++ b/src/controls/QskWindow.cpp @@ -119,7 +119,7 @@ static inline void qskSetVisualizationMode( #endif } -static inline QByteArray qskVisualizationMode( const QQuickWindow* window ) +static inline const QByteArray& qskVisualizationMode( const QQuickWindow* window ) { auto d = QQuickWindowPrivate::get( const_cast< QQuickWindow* >( window ) ); #if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) @@ -208,7 +208,8 @@ void QskWindow::setScreen( const QString& name ) { if ( !name.isEmpty() ) { - for ( auto screen : QGuiApplication::screens() ) + const auto screens = QGuiApplication::screens(); + for ( auto screen : screens ) { if ( screen->name() == name ) {