summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlquery
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-13 20:13:29 (GMT)
committerTor Arne Vestbø <tor.arne.vestbo@nokia.com>2010-10-18 09:38:34 (GMT)
commit28dd8ee71bdb4b69d86ea85ef18afc47cc7f2853 (patch)
tree8b9f8c3dd71ab1ab0e62d62a09074226881cf94c /tests/auto/qxmlquery
parent572999ce8f6124a9e55fcb876c2db40bc786a851 (diff)
downloadQt-28dd8ee71bdb4b69d86ea85ef18afc47cc7f2853.zip
Qt-28dd8ee71bdb4b69d86ea85ef18afc47cc7f2853.tar.gz
Qt-28dd8ee71bdb4b69d86ea85ef18afc47cc7f2853.tar.bz2
Add a few default-constructors to comply with C++'03 [dcl.init] p9
C++'03 [dcl.init] p9 says: "If no initializer is specified for an object, and the object is of (possibly cv-qualified) non-POD class type (or array thereof), the object shall be default-initialized; if the object is of const-qualified type, the underlying class type shall have a user-declared default constructor." QXmlStreamAttributes and a few classes in the QXmlQuery test were missing them. Relevant GCC and Clang bugs: - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42844 - http://llvm.org/bugs/show_bug.cgi?id=6772 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'tests/auto/qxmlquery')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index 2187aeb..b7c8740 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -455,6 +455,7 @@ void tst_QXmlQuery::assignmentOperator() const
class ReturnURI : public QAbstractUriResolver
{
public:
+ ReturnURI() {}
virtual QUrl resolve(const QUrl &relative,
const QUrl &baseURI) const
{
@@ -2858,6 +2859,7 @@ void tst_QXmlQuery::useUriResolver() const
, private TestFundament
{
public:
+ TestUriResolver() {}
virtual QUrl resolve(const QUrl &relative,
const QUrl &baseURI) const
{