diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2019-12-20 21:29:43 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2020-01-05 11:50:18 +0200 |
commit | 2055025c0c79a0e21e43fc8de02a4a2deedcb2fa (patch) | |
tree | 8fcf6a363fd2a39207df1230a0cf259a48c89351 /src/core/kauthorized.cpp | |
parent | 500892be5d7526e226dbddb7d4570d47cf42eeff (diff) | |
download | kconfig-2055025c0c79a0e21e43fc8de02a4a2deedcb2fa.tar.gz kconfig-2055025c0c79a0e21e43fc8de02a4a2deedcb2fa.tar.bz2 |
Port QRegExp to QRegularExpression
Summary:
Port QRegExp::exactMatch() by using QRegularExpression::anchoredPattern()
to match the entire subject string.
Remove filenameOnly(), it's been broken for a long time (QStringLiteral("[/\\]")
is not a valid QRegExp pattern); besides it's not needed as QFileInfo::fileName()
is used to get the filename.
Test Plan: make && ctest
Reviewers: #frameworks, dfaure, ervin, apol
Reviewed By: dfaure, ervin
Subscribers: kde-frameworks-devel
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D26177
Diffstat (limited to 'src/core/kauthorized.cpp')
-rw-r--r-- | src/core/kauthorized.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp index bf2142f6..167136c8 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -21,7 +21,6 @@ #include "kauthorized.h" #include <QDir> -#include <QRegExp> #include <QList> #include <QUrl> |