summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-06-04 11:08:42 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-11 01:50:09 +0200
commit4bd45d7d2a32a170b4ed11b03752726b446fbb79 (patch)
tree64c5f04cac2e5e2707beeff93235f93ed441da3b /src
parentb3aa3fe145888c58188cdd385c71469346e8e667 (diff)
downloadqtxmlpatterns-4bd45d7d2a32a170b4ed11b03752726b446fbb79.tar.gz
Fix warnings found by clang: private members unused in classes
These are private classes, so there's no need to keep binary compatibility or reserved members. qabstractxmlpullprovider_p.h:103:41: error: private field 'd' is not used [-Werror,-Wunused-private-field] projectedexpression_p.h:124:55: error: private field 'm_axis' is not used [-Werror,-Wunused-private-field] qprojectedexpression_p.h:154:41: error: private field 'm_right' is not used [-Werror,-Wunused-private-field] Change-Id: Idd46da87aaa85124b285cdcf01cf76eaa16e86c3 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src')
-rw-r--r--src/xmlpatterns/api/qabstractxmlpullprovider_p.h1
-rw-r--r--src/xmlpatterns/projection/qprojectedexpression_p.h16
2 files changed, 7 insertions, 10 deletions
diff --git a/src/xmlpatterns/api/qabstractxmlpullprovider_p.h b/src/xmlpatterns/api/qabstractxmlpullprovider_p.h
index 23f4085..0254a30 100644
--- a/src/xmlpatterns/api/qabstractxmlpullprovider_p.h
+++ b/src/xmlpatterns/api/qabstractxmlpullprovider_p.h
@@ -100,7 +100,6 @@ namespace QPatternist
/* *** The functions below are internal. */
private:
Q_DISABLE_COPY(AbstractXmlPullProvider)
- AbstractXmlPullProviderPrivate *d;
};
}
diff --git a/src/xmlpatterns/projection/qprojectedexpression_p.h b/src/xmlpatterns/projection/qprojectedexpression_p.h
index 2d36df8..d0b0da0 100644
--- a/src/xmlpatterns/projection/qprojectedexpression_p.h
+++ b/src/xmlpatterns/projection/qprojectedexpression_p.h
@@ -104,10 +104,11 @@ namespace QPatternist
{
public:
ProjectedStep(const ProjectedNodeTest::Ptr test,
- const QXmlNodeModelIndex::Axis axis) : m_test(test),
- m_axis(axis)
+ const QXmlNodeModelIndex::Axis axis)
{
- Q_ASSERT(m_test);
+ Q_ASSERT(test);
+ Q_UNUSED(test);
+ Q_UNUSED(axis);
}
virtual Action actionForElement(const QXmlName name,
@@ -120,19 +121,17 @@ namespace QPatternist
}
private:
- const ProjectedNodeTest::Ptr m_test;
- const QXmlNodeModelIndex::Axis m_axis;
};
class ProjectedPath : public ProjectedExpression
{
public:
ProjectedPath(const ProjectedExpression::Ptr left,
- const ProjectedExpression::Ptr right) : m_left(left),
- m_right(right)
+ const ProjectedExpression::Ptr right) : m_left(left)
{
Q_ASSERT(m_left);
- Q_ASSERT(m_right);
+ Q_ASSERT(right);
+ Q_UNUSED(right);
}
virtual Action actionForElement(const QXmlName name,
@@ -152,7 +151,6 @@ namespace QPatternist
private:
const ProjectedExpression::Ptr m_left;
- const ProjectedExpression::Ptr m_right;
};
}