[libcalamares] POD don't bother with const&
This commit is contained in:
parent
177d6fe861
commit
4aeb774812
@ -271,7 +271,7 @@ CStringListModel::data( const QModelIndex& index, int role ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CStringListModel::setCurrentIndex( const int& index )
|
CStringListModel::setCurrentIndex( int index )
|
||||||
{
|
{
|
||||||
if ( ( index < 0 ) || ( index >= m_list.count() ) )
|
if ( ( index < 0 ) || ( index >= m_list.count() ) )
|
||||||
{
|
{
|
||||||
|
@ -156,7 +156,7 @@ public:
|
|||||||
const CStringPair* item( int index ) const;
|
const CStringPair* item( int index ) const;
|
||||||
QHash< int, QByteArray > roleNames() const override;
|
QHash< int, QByteArray > roleNames() const override;
|
||||||
|
|
||||||
void setCurrentIndex( const int& index );
|
void setCurrentIndex( int index );
|
||||||
int currentIndex() const;
|
int currentIndex() const;
|
||||||
|
|
||||||
void setList( CStringPairList );
|
void setList( CStringPairList );
|
||||||
|
Loading…
Reference in New Issue
Block a user