compiler warning fixed

This commit is contained in:
Uwe Rathmann 2022-12-03 17:24:25 +01:00
parent fad8d8a616
commit ac73161e33
1 changed files with 1 additions and 1 deletions

View File

@ -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