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).
This commit is contained in:
Adriaan de Groot 2018-09-01 20:52:09 +00:00
parent 47d74e30cd
commit b72597752e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478729

View File

@ -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 );
}