telepathy-qt: Tests/Callbacks: Fix compile warnings

Alexandr Akulich kaffeine at kemper.freedesktop.org
Mon Sep 2 18:00:11 UTC 2019


Module: telepathy-qt
Branch: master
Commit: da839d6c7820134cce9140bd9fc9df5704a75704
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=da839d6c7820134cce9140bd9fc9df5704a75704

Author: Alexander Akulich <akulichalexander at gmail.com>
Date:   Thu Jun 13 00:55:21 2019 +0300

Tests/Callbacks: Fix compile warnings

---

 tests/callbacks.cpp | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/tests/callbacks.cpp b/tests/callbacks.cpp
index 3c47def8..1e20a71a 100644
--- a/tests/callbacks.cpp
+++ b/tests/callbacks.cpp
@@ -20,41 +20,41 @@ struct MyCallbacks
         reset();
     }
 
-    void testVV() { mVVCalled++; }
+    void testVV() { mVVCalled = true; }
     void testVI1(int a1)
     {
         QCOMPARE(a1, 1);
-        mVI1Called++;
+        mVI1Called = true;
     }
     void testVI2(int a1, int a2)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2);
-        mVI2Called++;
+        mVI2Called = true;
     }
     void testVI3(int a1, int a2, int a3)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3);
-        mVI3Called++;
+        mVI3Called = true;
     }
     void testVI4(int a1, int a2, int a3, int a4)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4);
-        mVI4Called++;
+        mVI4Called = true;
     }
     void testVI5(int a1, int a2, int a3, int a4, int a5)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5);
-        mVI5Called++;
+        mVI5Called = true;
     }
     void testVI6(int a1, int a2, int a3, int a4, int a5, int a6)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5); QCOMPARE(a6, 6);
-        mVI6Called++;
+        mVI6Called = true;
     }
     void testVI7(int a1, int a2, int a3, int a4, int a5, int a6, int a7)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5); QCOMPARE(a6, 6); QCOMPARE(a7, 7);
-        mVI7Called++;
+        mVI7Called = true;
     }
 
     void reset()
@@ -103,41 +103,41 @@ namespace
     bool mVI6Called;
     bool mVI7Called;
 
-    void testVV() { mVVCalled++; }
+    void testVV() { mVVCalled = true; }
     void testVI1(int a1)
     {
         QCOMPARE(a1, 1);
-        mVI1Called++;
+        mVI1Called = true;
     }
     void testVI2(int a1, int a2)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2);
-        mVI2Called++;
+        mVI2Called = true;
     }
     void testVI3(int a1, int a2, int a3)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3);
-        mVI3Called++;
+        mVI3Called = true;
     }
     void testVI4(int a1, int a2, int a3, int a4)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4);
-        mVI4Called++;
+        mVI4Called = true;
     }
     void testVI5(int a1, int a2, int a3, int a4, int a5)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5);
-        mVI5Called++;
+        mVI5Called = true;
     }
     void testVI6(int a1, int a2, int a3, int a4, int a5, int a6)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5); QCOMPARE(a6, 6);
-        mVI6Called++;
+        mVI6Called = true;
     }
     void testVI7(int a1, int a2, int a3, int a4, int a5, int a6, int a7)
     {
         QCOMPARE(a1, 1); QCOMPARE(a2, 2); QCOMPARE(a3, 3); QCOMPARE(a4, 4); QCOMPARE(a5, 5); QCOMPARE(a6, 6); QCOMPARE(a7, 7);
-        mVI7Called++;
+        mVI7Called = true;
     }
 
     void reset()



More information about the telepathy-commits mailing list