summaryrefslogtreecommitdiff
path: root/tests/auto/qsourcelocation/tst_qsourcelocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qsourcelocation/tst_qsourcelocation.cpp')
-rw-r--r--tests/auto/qsourcelocation/tst_qsourcelocation.cpp2
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));
}