1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Port to Qt6, wrap in QByteArrayView

GIT_SILENT

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-12-17 02:10:35 +01:00
parent e7d9ecaa3a
commit 5264255af2
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -115,7 +115,7 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
prefix.truncate(6);
QByteArray idc = id.toUtf8();
quint16 idNum = qChecksum(idc.constData(), idc.size());
quint16 idNum = qChecksum(QByteArrayView(idc.constData(), idc.size()));
socketName = QLatin1String("qtsingleapp-") + prefix
+ QLatin1Char('-') + QString::number(idNum, 16);