summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdriaan de Groot <groot@kde.org>2019-05-10 11:50:01 -0400
committerAdriaan de Groot <groot@kde.org>2019-05-10 12:07:24 -0400
commit76b45a2740e41f2f6fadfd99ecee9feefd29bb8a (patch)
treeee511a1ca1a02929940191ad1017405c98526620 /src
parent18ed4c74efba8efc6919e27a87e1049122c91cc7 (diff)
[libcalamares] const-data retrieval is const for LabelModel
Diffstat (limited to 'src')
-rw-r--r--src/libcalamares/locale/LabelModel.cpp2
-rw-r--r--src/libcalamares/locale/LabelModel.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcalamares/locale/LabelModel.cpp b/src/libcalamares/locale/LabelModel.cpp
index 312d96121..90475cb0e 100644
--- a/src/libcalamares/locale/LabelModel.cpp
+++ b/src/libcalamares/locale/LabelModel.cpp
@@ -63,7 +63,7 @@ LabelModel::data( const QModelIndex& index, int role ) const
}
const Label&
-LabelModel::locale( int row )
+LabelModel::locale( int row ) const
{
if ( ( row < 0 ) || ( row >= m_locales.count() ) )
{
diff --git a/src/libcalamares/locale/LabelModel.h b/src/libcalamares/locale/LabelModel.h
index 092ee638a..c807e6016 100644
--- a/src/libcalamares/locale/LabelModel.h
+++ b/src/libcalamares/locale/LabelModel.h
@@ -51,7 +51,7 @@ public:
* This is the backing data for the model; if @p row is out-of-range,
* returns a reference to en_US.
*/
- const Label& locale( int row );
+ const Label& locale( int row ) const;
/** @brief Searches for an item that matches @p predicate
*