diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2014-08-21 15:36:30 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-08-24 09:56:59 +0200 |
commit | 4f98d16c66816e3097cf4b1764e2bf3d0f75ddf3 (patch) | |
tree | 864e5e73437445ad5ff8923249e5456df6e0d75a /src/quick/items/qquickspriteengine_p.h | |
parent | 23776181b8e73dc7f18c3042fcc37c9f018f29c5 (diff) |
Add const & to arguments
Change-Id: I1bcf69638fee32b6e6565b8ea828c0adcff48a67
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/quick/items/qquickspriteengine_p.h')
-rw-r--r-- | src/quick/items/qquickspriteengine_p.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/items/qquickspriteengine_p.h b/src/quick/items/qquickspriteengine_p.h index 3ff5f8caee..b2d20e1579 100644 --- a/src/quick/items/qquickspriteengine_p.h +++ b/src/quick/items/qquickspriteengine_p.h @@ -111,9 +111,9 @@ public: Q_SIGNALS: void durationChanged(int arg); - void nameChanged(QString arg); + void nameChanged(const QString &arg); - void toChanged(QVariantMap arg); + void toChanged(const QVariantMap &arg); void durationVariationChanged(int arg); @@ -130,7 +130,7 @@ public Q_SLOTS: } } - void setName(QString arg) + void setName(const QString &arg) { if (m_name != arg) { m_name = arg; @@ -138,7 +138,7 @@ public Q_SLOTS: } } - void setTo(QVariantMap arg) + void setTo(const QVariantMap &arg) { if (m_to != arg) { m_to = arg; @@ -216,11 +216,11 @@ public: private: Q_SIGNALS: - void globalGoalChanged(QString arg); + void globalGoalChanged(const QString &arg); void stateChanged(int idx); public Q_SLOTS: - void setGlobalGoal(QString arg) + void setGlobalGoal(const QString &arg) { if (m_globalGoal != arg) { m_globalGoal = arg; |