summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery/tst_qxmlquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qxmlquery/tst_qxmlquery.cpp')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index df4b955..09d3816 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -1215,9 +1215,9 @@ void tst_QXmlQuery::basicXQueryToQtTypeCheck() const
expectedValues.append(QVariant(QByteArray::fromHex(QByteArray("FFFF")))); /* xs:hexBinary("FFFF"), */
expectedValues.append(QVariant(QString::fromLatin1("http://example.com/"))); /* xs:anyURI("http://example.com/"), */
QXmlNamePool np(query.namePool());
- expectedValues.append(QVariant(qVariantFromValue(QXmlName(np, QLatin1String("localName"),
- QLatin1String("http://example.com/2"),
- QLatin1String("prefix")))));
+ expectedValues.append(QVariant::fromValue(QXmlName(np, QLatin1String("localName"),
+ QLatin1String("http://example.com/2"),
+ QLatin1String("prefix"))));
expectedValues.append(QVariant(QString::fromLatin1("An xs:string")));
expectedValues.append(QVariant(QString::fromLatin1("normalizedString")));