diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2019-08-30 14:18:35 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2019-08-30 16:26:16 +0200 |
commit | 839d63d234fa89e1cc50669ea4976b63df465e2b (patch) | |
tree | 468c6ac437628f4b3097864e855332aa598a7028 | |
parent | 910b074f1819e0b3c3a67a7d98f20a97f96ec993 (diff) |
ivicore: Don't shadow other members in template classes
Change-Id: I8dbc90830f815b90f26af7c343b3548c13c60d94
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r-- | src/ivicore/qivipendingreply.h | 8 | ||||
-rw-r--r-- | src/ivicore/qivisimulationproxy.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ivicore/qivipendingreply.h b/src/ivicore/qivipendingreply.h index d22504c..bb89dea 100644 --- a/src/ivicore/qivipendingreply.h +++ b/src/ivicore/qivipendingreply.h @@ -121,9 +121,9 @@ public: : QIviPendingReplyBase(qMetaTypeId<T>()) {} - void setSuccess(const T &value) + void setSuccess(const T &val) { - setSuccessNoCheck(QVariant::fromValue(value)); + setSuccessNoCheck(QVariant::fromValue(val)); } T reply() const { return m_watcher->value().template value<T>(); } @@ -143,9 +143,9 @@ public: : QIviPendingReplyBase(qMetaTypeId<QVariant>()) {} - void setSuccess(const QVariant &value) + void setSuccess(const QVariant &val) { - setSuccessNoCheck(value); + setSuccessNoCheck(val); } QVariant reply() const { return m_watcher->value(); } diff --git a/src/ivicore/qivisimulationproxy.h b/src/ivicore/qivisimulationproxy.h index 8e23e9c..980826d 100644 --- a/src/ivicore/qivisimulationproxy.h +++ b/src/ivicore/qivisimulationproxy.h @@ -127,8 +127,8 @@ namespace qtivi_private { template <typename T> class QIviSimulationProxy: public QIviSimulationProxyBase { public: - QIviSimulationProxy(QObject *parent=nullptr) - : QIviSimulationProxyBase(&staticMetaObject, m_instance, methodMap(), parent) + QIviSimulationProxy(QObject *p=nullptr) + : QIviSimulationProxyBase(&staticMetaObject, m_instance, methodMap(), p) { Q_ASSERT_X(m_instance, "QIviSimulationProxy()", "QIviSimulationProxy::registerInstance needs to be called first"); } |