Skip to content

Commit

Permalink
Use non-deprecated qChecksum in qtlocalpeer of qtsingleapplication
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Dec 11, 2024
1 parent c48550d commit dfb2bc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3rdparty/qtsingleapplication/qtlocalpeer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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-")
Expand Down

0 comments on commit dfb2bc4

Please sign in to comment.