summaryrefslogtreecommitdiff
path: root/chat/telepathy-qt5/patches/patch-tests_dbus_client.cpp
blob: 5c7df32b6af895d24402c77c7547106020925a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-tests_dbus_client.cpp,v 1.1 2019/12/12 16:44:53 nros Exp $
* remove use of deprecated function
--- tests/dbus/client.cpp.orig	2019-11-11 17:17:37.000000000 +0000
+++ tests/dbus/client.cpp
@@ -753,12 +753,12 @@ void TestClient::testAddDispatchOperatio
     handledChannels.clear();
     QVERIFY(waitForProperty(handler1Iface->requestPropertyHandledChannels(), &handledChannels));
     QVERIFY(!handledChannels.isEmpty());
-    qSort(handledChannels);
+    std::sort(handledChannels.begin(), handledChannels.end());
     Tp::ObjectPathList expectedHandledChannels;
     Q_FOREACH (const ChannelDetails &details, mCDO->Channels()) {
         expectedHandledChannels << details.channel;
     }
-    qSort(expectedHandledChannels);
+    std::sort(expectedHandledChannels.begin(), expectedHandledChannels.end());
     QCOMPARE(handledChannels, expectedHandledChannels);
 }