aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authoradridg <adridg@FreeBSD.org>2018-09-02 04:52:09 +0800
committeradridg <adridg@FreeBSD.org>2018-09-02 04:52:09 +0800
commitb9abff1ff3fd4bd9c012245f5654780b75849b2b (patch)
treefb7b41d1d34d57f6b70aac6563126e8194fffd16 /deskutils
parentc45a2daa637b2e7d95cff915d81b24b6576af8d0 (diff)
downloadfreebsd-ports-gnome-b9abff1ff3fd4bd9c012245f5654780b75849b2b.tar.gz
freebsd-ports-gnome-b9abff1ff3fd4bd9c012245f5654780b75849b2b.tar.zst
freebsd-ports-gnome-b9abff1ff3fd4bd9c012245f5654780b75849b2b.zip
Fix build with clang7
By now I think I'm ahead of jbeich in finding clang7 failures within the KDE4 stack (which is deprecated and will be removed anyway 2018-12-31, but probably not before clang7 happens).
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/kdepim-kde4/files/patch-knode_knfiltermanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/deskutils/kdepim-kde4/files/patch-knode_knfiltermanager.cpp b/deskutils/kdepim-kde4/files/patch-knode_knfiltermanager.cpp
new file mode 100644
index 000000000000..5d7690962dc6
--- /dev/null
+++ b/deskutils/kdepim-kde4/files/patch-knode_knfiltermanager.cpp
@@ -0,0 +1,11 @@
+--- knode/knfiltermanager.cpp.orig 2018-09-01 19:13:40 UTC
++++ knode/knfiltermanager.cpp
+@@ -201,7 +201,7 @@ void KNFilterManager::addFilter(KNArticleFilter *f)
+ foreach ( KNArticleFilter *filter, mFilterList )
+ activeFilters << filter->id();
+ int newId = 1;
+- while ( activeFilters.contains( newId ) > 0 )
++ while ( bool(activeFilters.contains( newId )) )
+ newId++;
+ f->setId( newId );
+ }