diff --git a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp index 4be57a0286cdb..8afab3e079e75 100644 --- a/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp +++ b/src/3rdparty/qtsingleapplication/qtlocalpeer.cpp @@ -51,8 +51,8 @@ static const char ack[] = "ack"; QString QtLocalPeer::appSessionId(const QString &appId) { - QByteArray idc = appId.toUtf8(); - quint16 idNum = qChecksum(idc.constData(), idc.size()); + const auto idc = appId.toUtf8(); + const auto idNum = qChecksum(idc); //### could do: two 16bit checksums over separate halves of id, for a 32bit result - improved uniqeness probability. Every-other-char split would be best. QString res = QLatin1String("qtsingleapplication-")