summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-06 18:34:35 +0100
committerMontel Laurent <[email protected]>2015-11-06 18:34:35 +0100
commita212ca7f46af7c95351a699f547b395918189c9b (patch)
treea703b68166e3a8f829a78ccf8a7a357c5e7d0098
parenta63d5844fa63065a95bf371ad41148212ff8bed0 (diff)
Use QRegularExpression
-rw-r--r--src/identitymanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/identitymanager.cpp b/src/identitymanager.cpp
index c57341e..8fa5bee 100644
--- a/src/identitymanager.cpp
+++ b/src/identitymanager.cpp
@@ -34,10 +34,10 @@ static const char configKeyDefaultIdentity[] = "Default Identity";
#include <kdelibs4configmigrator.h>
#include <QList>
-#include <QRegExp>
#include <QtDBus/QtDBus>
#include <QHostInfo>
+#include <QRegularExpression>
#include <assert.h>
#include <krandom.h>
@@ -234,7 +234,7 @@ void IdentityManager::Private::createDefaultIdentity()
QStringList IdentityManager::Private::groupList(KConfig *config) const
{
- return config->groupList().filter(QRegExp(QStringLiteral("^Identity #\\d+$")));
+ return config->groupList().filter(QRegularExpression(QStringLiteral("^Identity #\\d+$")));
}
int IdentityManager::Private::newUoid()