[libcalamares] const-data retrieval is const for LabelModel

This commit is contained in:
Adriaan de Groot 2019-05-10 11:50:01 -04:00
parent 18ed4c74ef
commit 76b45a2740
2 changed files with 2 additions and 2 deletions

View File

@ -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() ) )
{

View File

@ -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
*