summaryrefslogtreecommitdiffstats
path: root/tests/auto/qxmlschema/tst_qxmlschema.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qxmlschema/tst_qxmlschema.cpp')
-rw-r--r--tests/auto/qxmlschema/tst_qxmlschema.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qxmlschema/tst_qxmlschema.cpp b/tests/auto/qxmlschema/tst_qxmlschema.cpp
index 7fc59bb35e..33978e8ead 100644
--- a/tests/auto/qxmlschema/tst_qxmlschema.cpp
+++ b/tests/auto/qxmlschema/tst_qxmlschema.cpp
@@ -118,6 +118,10 @@ void tst_QXmlSchema::constructorQXmlNamePool() const
QCOMPARE(name.namespaceUri(np2), QString::fromLatin1("http://example.com/"));
QCOMPARE(name.localName(np2), QString::fromLatin1("localName"));
QCOMPARE(name.prefix(np2), QString::fromLatin1("prefix"));
+
+ // make sure namePool() is const
+ const QXmlSchema constSchema;
+ np = constSchema.namePool();
}
void tst_QXmlSchema::copyMutationTest() const