[libcalamares] const-data retrieval is const for LabelModel
This commit is contained in:
parent
18ed4c74ef
commit
76b45a2740
@ -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() ) )
|
||||
{
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user