summaryrefslogtreecommitdiffstats
path: root/src/xml/sax/qxml.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-03-21 14:15:12 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-15 15:32:40 +0200
commitc57dd789fd0a76a81499c9413203a46d1743e0f8 (patch)
treec7095716507b36cd9322892abf24b40ae72ca785 /src/xml/sax/qxml.cpp
parentaec1bcf6a36a61ae7bad8f733ac4bd2211e6eb2b (diff)
Mark as unused the private members that aren't and CANNOT be used
Those members were left uninitialised by inline constructors and/or the destructor of those classes is/was also inline. Those members cannot be used to store pointers that need managing during the Qt 5.x lifetime. They can be used to store simple values, as if they were integers. Detected by Apple Clang 4.2. Change-Id: I20e2def7c4006668e2d6a7e332c89e2dc8c2a184 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/xml/sax/qxml.cpp')
-rw-r--r--src/xml/sax/qxml.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/xml/sax/qxml.cpp b/src/xml/sax/qxml.cpp
index 47e137976b..0e20041a62 100644
--- a/src/xml/sax/qxml.cpp
+++ b/src/xml/sax/qxml.cpp
@@ -985,12 +985,22 @@ void QXmlNamespaceSupport::reset()
Constructs an empty attribute list.
*/
+QXmlAttributes::QXmlAttributes()
+{
+ // ### In Qt 5.0, this function was inlined and d was not initialized
+ // The member cannot be used until Qt 6.0
+ Q_UNUSED(d);
+}
/*!
\fn QXmlAttributes::~QXmlAttributes()
Destroys the attributes object.
*/
+QXmlAttributes::~QXmlAttributes()
+{
+}
+
/*!
Looks up the index of an attribute by the qualified name \a qName.
@@ -2400,11 +2410,21 @@ events are reported.
Constructs a handler for use with subclasses of QXmlReader.
*/
+QXmlDefaultHandler::QXmlDefaultHandler()
+{
+ // ### In Qt 5.0, this function was inlined and d was not initialized
+ // The member cannot be used until Qt 6.0
+ Q_UNUSED(d);
+}
+
/*!
\fn QXmlDefaultHandler::~QXmlDefaultHandler()
Destroys the handler.
*/
+QXmlDefaultHandler::~QXmlDefaultHandler()
+{
+}
/*!
\reimp