From ac73161e33e9f496375d1e8ab1d7c82fc1592406 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sat, 3 Dec 2022 17:24:25 +0100 Subject: [PATCH] compiler warning fixed --- playground/shapes/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/shapes/main.cpp b/playground/shapes/main.cpp index 3c044023..5d755e5d 100644 --- a/playground/shapes/main.cpp +++ b/playground/shapes/main.cpp @@ -27,7 +27,7 @@ static inline int registerValueType( const char* qmlName ) #if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) QByteArray name = qmlName; name.data()[0] = std::tolower( name.data()[0] ); - registerType< T >( name.constData() ); + return registerType< T >( name.constData() ); #else return qmlRegisterUncreatableType< T >( "Shapes", 1, 0, qmlName, QString() ); #endif