[graphics/digikam] core/utilities/geolocation/geoiface/reversegeocoding: cppcheck++ : constaify

Gilles Caulier <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit bd1152eb06345a34745936393fde752ad145d8ee by Gilles Caulier.
Committed on 05/08/2026 at 06:08.
Pushed by cgilles into branch 'master'.

cppcheck++ : constaify

M  +2    -2    core/utilities/geolocation/geoiface/reversegeocoding/simpletreemodel.cpp

https://invent.kde.org/graphics/digikam/-/commit/bd1152eb06345a34745936393fde752ad145d8ee

diff --git a/core/utilities/geolocation/geoiface/reversegeocoding/simpletreemodel.cpp b/core/utilities/geolocation/geoiface/reversegeocoding/simpletreemodel.cpp
index b70f45675e..c3ad5cc82e 100644
--- a/core/utilities/geolocation/geoiface/reversegeocoding/simpletreemodel.cpp
+++ b/core/utilities/geolocation/geoiface/reversegeocoding/simpletreemodel.cpp
@@ -222,8 +222,8 @@ SimpleTreeModel::Item* SimpleTreeModel::indexToItem(const QModelIndex& itemIndex
         return d->rootItem;
     }
 
-    Item* const item = static_cast<Item*>(itemIndex.internalPointer());
-    const int row    = itemIndex.row();
+    const Item* const item = static_cast<Item*>(itemIndex.internalPointer());
+    const int row          = itemIndex.row();
 
     if ((row < 0) || (row >= item->children.count()))
     {
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.