[pim/pimcommon] src/pimcommonakonadi/addressline/addresslineedit: Assign directly QRegularExpression

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4eb4cc078bab4b63819539ce91bac74e9c2e9fb6 by Laurent Montel.
Committed on 28/07/2026 at 20:24.
Pushed by mlaurent into branch 'master'.

Assign directly QRegularExpression

M  +1    -1    src/pimcommonakonadi/addressline/addresslineedit/kmailcompletion.cpp

https://invent.kde.org/pim/pimcommon/-/commit/4eb4cc078bab4b63819539ce91bac74e9c2e9fb6

diff --git a/src/pimcommonakonadi/addressline/addresslineedit/kmailcompletion.cpp b/src/pimcommonakonadi/addressline/addresslineedit/kmailcompletion.cpp
index 2a19103b..f87bd0bf 100644
--- a/src/pimcommonakonadi/addressline/addresslineedit/kmailcompletion.cpp
+++ b/src/pimcommonakonadi/addressline/addresslineedit/kmailcompletion.cpp
@@ -28,7 +28,7 @@ QString KMailCompletion::makeCompletion(const QString &string)
 {
     QString match = KCompletion::makeCompletion(string);
 
-    static const QRegularExpression emailRegularExpression{QRegularExpression(QStringLiteral("(@)|(<.*>)"))};
+    static const QRegularExpression emailRegularExpression{QStringLiteral("(@)|(<.*>)")};
     // this should be in postProcessMatch, but postProcessMatch is const and will not allow nextMatch
     if (!match.isEmpty()) {
         const QString firstMatch(match);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.