diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-24 15:11:38 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-08-31 09:08:44 +0000 |
commit | 9d84d16e09df4851abfdcff640ccacb51f6244b9 (patch) | |
tree | f2c29e602e96d763b808bb94408225e055af5273 /tests/auto/qxmlitem | |
parent | 1e4dd3aa1cea2cfc1bcda27942f7865aedf6fa2f (diff) | |
download | qtxmlpatterns-9d84d16e09df4851abfdcff640ccacb51f6244b9.tar.gz |
Tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases.
Fix usage of API that is marked deprecated.
Change-Id: If9622110d9ab2b1796602144ff484cdc3ac1f014
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'tests/auto/qxmlitem')
-rw-r--r-- | tests/auto/qxmlitem/qxmlitem.pro | 1 | ||||
-rw-r--r-- | tests/auto/qxmlitem/tst_qxmlitem.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qxmlitem/qxmlitem.pro b/tests/auto/qxmlitem/qxmlitem.pro index d7b66fa..db9c8a1 100644 --- a/tests/auto/qxmlitem/qxmlitem.pro +++ b/tests/auto/qxmlitem/qxmlitem.pro @@ -4,4 +4,3 @@ QT += testlib SOURCES += tst_qxmlitem.cpp include (../xmlpatterns.pri) -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qxmlitem/tst_qxmlitem.cpp b/tests/auto/qxmlitem/tst_qxmlitem.cpp index e608847..89768cd 100644 --- a/tests/auto/qxmlitem/tst_qxmlitem.cpp +++ b/tests/auto/qxmlitem/tst_qxmlitem.cpp @@ -352,7 +352,7 @@ void tst_QXmlItem::withinQVariant() const { QXmlItem val; const QVariant variant(qVariantFromValue(val)); - QXmlItem val2(qVariantValue<QXmlItem>(variant)); + QXmlItem val2(qvariant_cast<QXmlItem>(variant)); } QTEST_MAIN(tst_QXmlItem) |