Use const ref
This commit is contained in:
parent
cb3424f3cb
commit
9a07bb2f93
@ -210,7 +210,7 @@ QObject *DataModel::dataSource() const
|
|||||||
return m_dataSource;
|
return m_dataSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DataModel::setKeyRoleFilter(const QString key)
|
void DataModel::setKeyRoleFilter(const QString& key)
|
||||||
{
|
{
|
||||||
if (m_keyRoleFilter == key) {
|
if (m_keyRoleFilter == key) {
|
||||||
return;
|
return;
|
||||||
|
@ -96,7 +96,7 @@ public:
|
|||||||
void setDataSource(QObject *source);
|
void setDataSource(QObject *source);
|
||||||
QObject *dataSource() const;
|
QObject *dataSource() const;
|
||||||
|
|
||||||
void setKeyRoleFilter(const QString key);
|
void setKeyRoleFilter(const QString& key);
|
||||||
QString keyRoleFilter() const;
|
QString keyRoleFilter() const;
|
||||||
|
|
||||||
int roleNameToId(const QString &name);
|
int roleNameToId(const QString &name);
|
||||||
|
Loading…
Reference in New Issue
Block a user