1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From de9cbe1432c998fefd86238d7e20d18ecad9d271 Mon Sep 17 00:00:00 2001
From: Chris Adams <chris.adams@qinetic.com.au>
Date: Tue, 13 Oct 2020 13:13:26 +1000
Subject: [PATCH 17/32] Adjust unit test to account for QList index from int to
qsizetype change
Change-Id: Ibf2984c572674639ef2f91678640f10ec540b8c9
Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
.../unittest/tst_qcontactmanagerfiltering.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/auto/contacts/qcontactmanagerfiltering/unittest/tst_qcontactmanagerfiltering.cpp b/tests/auto/contacts/qcontactmanagerfiltering/unittest/tst_qcontactmanagerfiltering.cpp
index 2d2ca763..788e9254 100644
--- a/tests/auto/contacts/qcontactmanagerfiltering/unittest/tst_qcontactmanagerfiltering.cpp
+++ b/tests/auto/contacts/qcontactmanagerfiltering/unittest/tst_qcontactmanagerfiltering.cpp
@@ -414,7 +414,7 @@ QString tst_QContactManagerFiltering::convertIds(QList<QContactId> allIds, QList
/* Expected is of the form "abcd".. it's possible that there are some extra contacts */
for (int i = 0; i < ids.size(); i++) {
if (allIds.indexOf(ids.at(i)) >= 0) {
- QChar curr = ('a' + allIds.indexOf(ids.at(i)));
+ QChar curr = ('a' + static_cast<int>(allIds.indexOf(ids.at(i))));
if (curr >= minimumContact && curr <= maximumContact) {
ret += curr;
}
--
2.30.2
|