[pim/pim-sieve-editor] src: Make static QRegularExpression

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 899c1257b411da19ddb1643c3f7a35755ea05c20 by Laurent Montel.
Committed on 14/08/2026 at 17:44.
Pushed by mlaurent into branch 'master'.

Make static QRegularExpression

M  +1    -1    src/readserversieveconfigjob.cpp

https://invent.kde.org/pim/pim-sieve-editor/-/commit/899c1257b411da19ddb1643c3f7a35755ea05c20

diff --git a/src/readserversieveconfigjob.cpp b/src/readserversieveconfigjob.cpp
index 6e736931..30289266 100644
--- a/src/readserversieveconfigjob.cpp
+++ b/src/readserversieveconfigjob.cpp
@@ -105,7 +105,7 @@ void ReadServerSieveConfigJob::readImapPasswordFinished(QKeychain::Job *baseJob)
 void ReadServerSieveConfigJob::start()
 {
     KSharedConfigPtr cfg = KSharedConfig::openConfig();
-    QRegularExpression re(QStringLiteral("^ServerSieve (.+)$"));
+    static const QRegularExpression re(QStringLiteral("^ServerSieve (.+)$"));
     mGroupsConfigs = cfg->groupList().filter(re);
 
     slotReadNextConfig();
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.