[pim/messagelib] messagelist/src/core: const'ify method parameters

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 49e9731b57275738e1c2564e63e97b13e6c93bc6 by Laurent Montel.
Committed on 30/07/2026 at 04:56.
Pushed by mlaurent into branch 'master'.

const'ify method parameters

M  +2    -2    messagelist/src/core/sortorder.cpp
M  +2    -2    messagelist/src/core/sortorder.h

https://invent.kde.org/pim/messagelib/-/commit/49e9731b57275738e1c2564e63e97b13e6c93bc6

diff --git a/messagelist/src/core/sortorder.cpp b/messagelist/src/core/sortorder.cpp
index 00915dbfc..8d73b3a8c 100644
--- a/messagelist/src/core/sortorder.cpp
+++ b/messagelist/src/core/sortorder.cpp
@@ -219,7 +219,7 @@ SortOrder SortOrder::defaultForAggregation(const Aggregation *aggregation, SortO
     return newSortOrder;
 }
 
-bool SortOrder::readConfigHelper(KConfigGroup &conf, const QString &id)
+bool SortOrder::readConfigHelper(const KConfigGroup &conf, const QString &id)
 {
     if (!conf.hasKey(id + MessageList::Util::messageSortingConfigName())) {
         return false;
@@ -231,7 +231,7 @@ bool SortOrder::readConfigHelper(KConfigGroup &conf, const QString &id)
     return true;
 }
 
-void SortOrder::readConfig(KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder)
+void SortOrder::readConfig(const KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder)
 {
     SortOrder privateSortOrder;
     SortOrder globalSortOrder;
diff --git a/messagelist/src/core/sortorder.h b/messagelist/src/core/sortorder.h
index 2d91ee34b..61c8f61d6 100644
--- a/messagelist/src/core/sortorder.h
+++ b/messagelist/src/core/sortorder.h
@@ -179,7 +179,7 @@ public:
      *                                    is private for that folder, and false if the
      *                                    sort order is the global sort order.
      */
-    void readConfig(KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder);
+    void readConfig(const KConfigGroup &conf, const QString &storageId, bool *storageUsesPrivateSortOrder);
 
     /**
      * Writes the sort order to a config group.
@@ -200,7 +200,7 @@ private:
     [[nodiscard]] static MessageSorting messageSortingForName(const QString &name);
     [[nodiscard]] static GroupSorting groupSortingForName(const QString &name);
 
-    [[nodiscard]] bool readConfigHelper(KConfigGroup &conf, const QString &id);
+    [[nodiscard]] bool readConfigHelper(const KConfigGroup &conf, const QString &id);
 
     MessageSorting mMessageSorting = SortMessagesByDateTime;
     SortDirection mMessageSortDirection = Descending;
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.