summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-06-04 13:47:58 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-10 22:58:47 +0200
commit05148b648d63eddca797fada19d131d8affdc456 (patch)
tree3bbfe880f5f869399ea225c9edcec3d2531f9aa9 /src/declarative/qml
parent4a1505d5177d42ad2369d207be402a7846fd564a (diff)
Fix warnings found by clang: unused private members
For qdeclarativebinding_p.h, since the class is private, there is no BC guarantee, so we can just remove the members. This class has a friend, but the friend is also in the same .cpp. qdeclarativebinding_p.h:139:14: error: private field 'm_object' is not used [-Werror,-Wunused-private-field] qdeclarativebinding_p.h:140:9: error: private field 'm_index' is not used [-Werror,-Wunused-private-field] For QSGGeometry, since this is a public class, we can't remove the members. Just make them unused. qsggeometry.h:124:11: error: private field 'm_reserved_pointer' is not used [-Werror,-Wunused-private-field] qsggeometry.h:127:10: error: private field 'm_reserved_bits' is not used [-Werror,-Wunused-private-field] Change-Id: Ia3650f38f32bd4cd705078a69c5445c64883bce4 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativebinding.cpp4
-rw-r--r--src/declarative/qml/qdeclarativebinding_p.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp
index 9048fee1..cdfb5ce4 100644
--- a/src/declarative/qml/qdeclarativebinding.cpp
+++ b/src/declarative/qml/qdeclarativebinding.cpp
@@ -486,8 +486,10 @@ QString QDeclarativeBinding::expression() const
}
QDeclarativeValueTypeProxyBinding::QDeclarativeValueTypeProxyBinding(QObject *o, int index)
-: m_object(o), m_index(index), m_bindings(0)
+: m_bindings(0)
{
+ Q_UNUSED(o);
+ Q_UNUSED(index);
}
QDeclarativeValueTypeProxyBinding::~QDeclarativeValueTypeProxyBinding()
diff --git a/src/declarative/qml/qdeclarativebinding_p.h b/src/declarative/qml/qdeclarativebinding_p.h
index 5926c439..bb92e2b9 100644
--- a/src/declarative/qml/qdeclarativebinding_p.h
+++ b/src/declarative/qml/qdeclarativebinding_p.h
@@ -136,8 +136,6 @@ private:
void recursiveDisable(QDeclarativeAbstractBinding *);
friend class QDeclarativeAbstractBinding;
- QObject *m_object;
- int m_index;
QDeclarativeAbstractBinding *m_bindings;
};