[graphics/digikam] core/app/views/tableview: cppcheck++: constify

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

cppcheck++: constify

M  +1    -1    core/app/views/tableview/tableview_model.cpp

https://invent.kde.org/graphics/digikam/-/commit/98d97e86bc397512ee49d2961951f6349b492a4d

diff --git a/core/app/views/tableview/tableview_model.cpp b/core/app/views/tableview/tableview_model.cpp
index e3b28eb1f0..571ffbf430 100644
--- a/core/app/views/tableview/tableview_model.cpp
+++ b/core/app/views/tableview/tableview_model.cpp
@@ -380,7 +380,7 @@ void TableViewModel::addColumnAt(const TableViewColumnConfiguration& configurati
 
 void TableViewModel::slotColumnDataChanged(const qlonglong imageId)
 {
-    Item* const item                    = itemFromImageId(imageId);
+    const Item* const item              = itemFromImageId(imageId);
 
     if (!item)
     {
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.