diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2014-10-15 13:38:32 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-10-16 10:18:14 +0200 |
commit | cd1d21fdad54315c4a8ade860ce6b31aa5a6f4b9 (patch) | |
tree | c1c042dfdb6c7fd8644c2e45a1cdad18b0703e57 /src/render/frontend/qparameter.cpp | |
parent | 0f1d0ff5b3adb16afcda091e4ff4657f53581f79 (diff) |
Have copy() only on QNode
It was previously both on QNode and QNodePrivate. The one on
QNodePrivate didn't give us much as it didn't eliminate the virtual of
QNode.
Change-Id: Ia1ea9dd831674109c84bd7005abe7fde3b1223fa
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qparameter.cpp')
-rw-r--r-- | src/render/frontend/qparameter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/frontend/qparameter.cpp b/src/render/frontend/qparameter.cpp index 247b9ebe2..bc1ee940c 100644 --- a/src/render/frontend/qparameter.cpp +++ b/src/render/frontend/qparameter.cpp @@ -61,13 +61,13 @@ void QParameterPrivate::setValue(const QVariant &v) m_value = v; } -void QParameterPrivate::copy(const QNodePrivate *ref) +void QParameter::copy(const QNode *ref) { - QNodePrivate::copy(ref); - const QParameterPrivate *param = static_cast<const QParameterPrivate *>(ref); - m_name = param->m_name; - m_value = param->m_value; - m_isTexture = param->m_isTexture; + QNode::copy(ref); + const QParameter *param = static_cast<const QParameter*>(ref); + d_func()->m_name = param->d_func()->m_name; + d_func()->m_value = param->d_func()->m_value; + d_func()->m_isTexture = param->d_func()->m_isTexture; } QParameter::QParameter(QParameterPrivate &dd, QNode *parent) |