summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery/tst_qxmlquery.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-22 12:57:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-05-22 12:57:29 +0200
commitfe0475651556878b8b80b38058e5fa743822ddce (patch)
tree8181b063eed8a28486b758a3ff16eb6c166065fc /tests/auto/qxmlquery/tst_qxmlquery.cpp
parent55c62fdd9cc1f9ec0fc18c6b4d804d9cb065dce0 (diff)
downloadqtxmlpatterns-fe0475651556878b8b80b38058e5fa743822ddce.tar.gz
Tests: Fix warnings about deprecated function qVariantFromValue()
Change-Id: I6351b21813f0680b21405fdeadd7ee072dae703f Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
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")));