diff options
Diffstat (limited to 'tests/auto/qxmlname/tst_qxmlname.cpp')
-rw-r--r-- | tests/auto/qxmlname/tst_qxmlname.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/qxmlname/tst_qxmlname.cpp b/tests/auto/qxmlname/tst_qxmlname.cpp index 7057137..9021af3 100644 --- a/tests/auto/qxmlname/tst_qxmlname.cpp +++ b/tests/auto/qxmlname/tst_qxmlname.cpp @@ -389,8 +389,7 @@ void tst_QXmlName::toClarkName_data() const */ void tst_QXmlName::withinQVariant() const { - /* The extra paranthesis silences a warning on win32-msvc2005. */ - QVariant value(qVariantFromValue(QXmlName())); + auto value = QVariant::fromValue(QXmlName()); } /*! @@ -398,9 +397,9 @@ void tst_QXmlName::withinQVariant() const */ void tst_QXmlName::typeWithinQVariant() const { - const int qxmlNameType = QVariant(qVariantFromValue(QXmlName())).userType(); + const int qxmlNameType = QVariant::fromValue(QXmlName()).userType(); - const QVariant value(qVariantFromValue(QXmlName())); + const auto value = QVariant::fromValue(QXmlName()); QCOMPARE(value.userType(), qxmlNameType); } |