diff options
Diffstat (limited to 'tests/auto/qsourcelocation')
-rw-r--r-- | tests/auto/qsourcelocation/tst_qsourcelocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qsourcelocation/tst_qsourcelocation.cpp b/tests/auto/qsourcelocation/tst_qsourcelocation.cpp index b5b33c7..8d856be 100644 --- a/tests/auto/qsourcelocation/tst_qsourcelocation.cpp +++ b/tests/auto/qsourcelocation/tst_qsourcelocation.cpp @@ -330,7 +330,7 @@ void tst_QSourceLocation::setUri() const void tst_QSourceLocation::withinQVariant() const { QSourceLocation val; - const QVariant variant(qVariantFromValue(val)); + const auto variant = QVariant::fromValue(val); QSourceLocation val2(qvariant_cast<QSourceLocation>(variant)); } |