diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index 6702b94..652e0a3 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -131,7 +131,11 @@ QString SingleApplicationPrivate::getUsername() void SingleApplicationPrivate::genBlockServerName() { QCryptographicHash appData( QCryptographicHash::Sha256 ); +#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0) appData.addData( "SingleApplication", 17 ); +#else + appData.addData( QByteArrayView{"SingleApplication"} ); +#endif appData.addData( SingleApplication::app_t::applicationName().toUtf8() ); appData.addData( SingleApplication::app_t::organizationName().toUtf8() ); appData.addData( SingleApplication::app_t::organizationDomain().toUtf8() );