[pim/kmail] src/kontactplugin/kmail: const'ify variable

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

const'ify variable

M  +2    -2    src/kontactplugin/kmail/kcmkmailsummary.cpp

https://invent.kde.org/pim/kmail/-/commit/cd0e760e6bf4117dbe3d748006aa813dd171fc1f

diff --git a/src/kontactplugin/kmail/kcmkmailsummary.cpp b/src/kontactplugin/kmail/kcmkmailsummary.cpp
index eae372d50..49bd0649d 100644
--- a/src/kontactplugin/kmail/kcmkmailsummary.cpp
+++ b/src/kontactplugin/kmail/kcmkmailsummary.cpp
@@ -67,8 +67,8 @@ void KCMKMailSummary::initFolders()
 
 void KCMKMailSummary::loadFolders()
 {
-    KConfig _config(QStringLiteral("kcmkmailsummaryrc"));
-    KConfigGroup config(&_config, QStringLiteral("General"));
+    const KConfig _config(QStringLiteral("kcmkmailsummaryrc"));
+    const KConfigGroup config(&_config, QStringLiteral("General"));
     mModelState->restoreState();
     const bool showFolderPaths = config.readEntry("showFolderPaths", false);
     mFullPath->setChecked(showFolderPaths);
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.