summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Adams <chris.adams@qinetic.com.au>2020-10-01 17:30:10 +1000
committerChris Adams <chris.adams@qinetic.com.au>2020-11-02 13:19:06 +1000
commitefbf8ff3eb8c61cd94793f0b68b4bfbc61bdc54e (patch)
treeb9bcd703223ea8bca151c8b5175bc47f6d02014e
parent2aefdd8bd28a4decf9ef8381f5b255f39f1ee90c (diff)
Fix construction of QVariant for datatype
Change-Id: I134e3ecfd3ccae880212e420cf3099b306234af7 Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
-rw-r--r--tests/auto/contacts/qcontactasync/unittest/tst_qcontactasync.cpp2
-rw-r--r--tests/auto/organizer/qorganizeritemasync/unittest/tst_qorganizeritemasync.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/contacts/qcontactasync/unittest/tst_qcontactasync.cpp b/tests/auto/contacts/qcontactasync/unittest/tst_qcontactasync.cpp
index 77556427a..a88ab9322 100644
--- a/tests/auto/contacts/qcontactasync/unittest/tst_qcontactasync.cpp
+++ b/tests/auto/contacts/qcontactasync/unittest/tst_qcontactasync.cpp
@@ -143,7 +143,7 @@ private:
QList<QVariant> list;
for (int i = 0; i < args.count(); ++i) {
QMetaType::Type type = static_cast<QMetaType::Type>(args.at(i));
- list << QVariant(type, a[i + 1]);
+ list << QVariant(QMetaType(type), a[i + 1]);
}
savedArgs.append(list);
}
diff --git a/tests/auto/organizer/qorganizeritemasync/unittest/tst_qorganizeritemasync.cpp b/tests/auto/organizer/qorganizeritemasync/unittest/tst_qorganizeritemasync.cpp
index 84afcf2fa..6cbab9052 100644
--- a/tests/auto/organizer/qorganizeritemasync/unittest/tst_qorganizeritemasync.cpp
+++ b/tests/auto/organizer/qorganizeritemasync/unittest/tst_qorganizeritemasync.cpp
@@ -137,7 +137,7 @@ private:
QList<QVariant> list;
for (int i = 0; i < args.count(); ++i) {
QMetaType::Type type = static_cast<QMetaType::Type>(args.at(i));
- list << QVariant(type, a[i + 1]);
+ list << QVariant(QMetaType(type), a[i + 1]);
}
savedArgs.append(list);
}