making clazy happier

This commit is contained in:
Uwe Rathmann 2022-03-24 17:30:50 +01:00
parent b572c23561
commit eeb9e04b60

View File

@ -119,7 +119,7 @@ static inline void qskSetVisualizationMode(
#endif #endif
} }
static inline QByteArray qskVisualizationMode( const QQuickWindow* window ) static inline const QByteArray& qskVisualizationMode( const QQuickWindow* window )
{ {
auto d = QQuickWindowPrivate::get( const_cast< QQuickWindow* >( window ) ); auto d = QQuickWindowPrivate::get( const_cast< QQuickWindow* >( window ) );
#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) #if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 )
@ -208,7 +208,8 @@ void QskWindow::setScreen( const QString& name )
{ {
if ( !name.isEmpty() ) if ( !name.isEmpty() )
{ {
for ( auto screen : QGuiApplication::screens() ) const auto screens = QGuiApplication::screens();
for ( auto screen : screens )
{ {
if ( screen->name() == name ) if ( screen->name() == name )
{ {