pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/telepathy-qt telepathy-qt: Avoid ++ on bool.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fcc52fa89aa0
branches:  trunk
changeset: 380386:fcc52fa89aa0
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 15 10:12:28 2018 +0000

description:
telepathy-qt: Avoid ++ on bool.

diffstat:

 chat/telepathy-qt/distinfo                          |    3 +-
 chat/telepathy-qt/patches/patch-tests_callbacks.cpp |  106 ++++++++++++++++++++
 2 files changed, 108 insertions(+), 1 deletions(-)

diffs (124 lines):

diff -r 5344e528aa2b -r fcc52fa89aa0 chat/telepathy-qt/distinfo
--- a/chat/telepathy-qt/distinfo        Tue May 15 09:50:49 2018 +0000
+++ b/chat/telepathy-qt/distinfo        Tue May 15 10:12:28 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2015/12/01 13:11:49 jaapb Exp $
+$NetBSD: distinfo,v 1.2 2018/05/15 10:12:28 jperkin Exp $
 
 SHA1 (telepathy-qt-0.9.6.1.tar.gz) = c7e913b54b72d4c7134dacc38a48d583f66759ed
 RMD160 (telepathy-qt-0.9.6.1.tar.gz) = ff0db3576363c9c052b7b2402bb2bf5335ab1cd4
@@ -6,3 +6,4 @@
 Size (telepathy-qt-0.9.6.1.tar.gz) = 6067468 bytes
 SHA1 (patch-TelepathyQt_Farstream_CMakeLists.txt) = 8305fbcdddb0f1a1c1c3ba1d6d6dd30b97dec81a
 SHA1 (patch-cmake_modules_FindGStreamer.cmake) = 9a089b19c50d87495084122169ca31ccc40f1310
+SHA1 (patch-tests_callbacks.cpp) = 809547a5aed048ec4cf74d98e653cdadf042825a
diff -r 5344e528aa2b -r fcc52fa89aa0 chat/telepathy-qt/patches/patch-tests_callbacks.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/telepathy-qt/patches/patch-tests_callbacks.cpp       Tue May 15 10:12:28 2018 +0000
@@ -0,0 +1,106 @@
+$NetBSD: patch-tests_callbacks.cpp,v 1.1 2018/05/15 10:12:28 jperkin Exp $
+
+Avoid ++ on bool.
+
+--- tests/callbacks.cpp.orig   2015-05-24 19:33:18.000000000 +0000
++++ 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()



Home | Main Index | Thread Index | Old Index