aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmldelegatemodel_p.h
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2015-07-19 19:25:25 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-07-20 19:30:29 +0000
commit51dbd978eeac258fbc34ecb06d990efb90a58866 (patch)
treea76ecbcf56b869adbc1ad8183a00d68fe8aa130b /src/qml/types/qqmldelegatemodel_p.h
parent0a2bd3df1f3be29b8d3351731eb8b79002537f82 (diff)
qml: Pass non-trivially-copyable types by const-ref
Change-Id: Id3d960ee8236a4c6f4bb4e0add1f88dfa32d3592 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/types/qqmldelegatemodel_p.h')
-rw-r--r--src/qml/types/qqmldelegatemodel_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qqmldelegatemodel_p.h b/src/qml/types/qqmldelegatemodel_p.h
index 5ebffd5b9d..e222fadec2 100644
--- a/src/qml/types/qqmldelegatemodel_p.h
+++ b/src/qml/types/qqmldelegatemodel_p.h
@@ -96,7 +96,7 @@ public:
ReleaseFlags release(QObject *object);
void cancel(int index);
virtual QString stringValue(int index, const QString &role);
- virtual void setWatchedRoles(QList<QByteArray> roles);
+ virtual void setWatchedRoles(const QList<QByteArray> &roles);
int indexOf(QObject *object, QObject *objectContext) const;