summaryrefslogtreecommitdiffstats
path: root/qtsingleapplication/src
diff options
context:
space:
mode:
authorBenjamin Terrier <b.terrier@gmail.com>2022-03-17 14:57:24 +0100
committerBenjamin Terrier <b.terrier@gmail.com>2022-03-17 14:23:00 +0000
commit2fb541ecaf76c8592855ec86801ea58f87b4d58d (patch)
treedbc52e3dcd63396f375fb06c4c74153b605a22e1 /qtsingleapplication/src
parent11730d44910a51953a0a64237667617c5c623361 (diff)
QtSingleApplication: Fix build with Qt 6HEADmaster
Replace QRegExp by QRegularExpression Change-Id: I52e997452ad7d2d14de59ad8fae597de9aec262b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'qtsingleapplication/src')
-rw-r--r--qtsingleapplication/src/qtlocalpeer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp
index f3c4546..2bbcd8b 100644
--- a/qtsingleapplication/src/qtlocalpeer.cpp
+++ b/qtsingleapplication/src/qtlocalpeer.cpp
@@ -42,6 +42,7 @@
#include "qtlocalpeer.h"
#include <QCoreApplication>
#include <QDataStream>
+#include <QRegularExpression>
#include <QTime>
#if defined(Q_OS_WIN)
@@ -78,7 +79,7 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
#endif
prefix = id.section(QLatin1Char('/'), -1);
}
- prefix.remove(QRegExp("[^a-zA-Z]"));
+ prefix.remove(QRegularExpression("[^a-zA-Z]"));
prefix.truncate(6);
QByteArray idc = id.toUtf8();