[libcalamares] POD don't bother with const&

This commit is contained in:
Adriaan de Groot 2020-03-24 23:52:20 +01:00
parent 177d6fe861
commit 4aeb774812
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ CStringListModel::data( const QModelIndex& index, int role ) const
}
void
CStringListModel::setCurrentIndex( const int& index )
CStringListModel::setCurrentIndex( int index )
{
if ( ( index < 0 ) || ( index >= m_list.count() ) )
{

View File

@ -156,7 +156,7 @@ public:
const CStringPair* item( int index ) const;
QHash< int, QByteArray > roleNames() const override;
void setCurrentIndex( const int& index );
void setCurrentIndex( int index );
int currentIndex() const;
void setList( CStringPairList );