diff options
author | adridg <adridg@FreeBSD.org> | 2018-08-28 05:19:57 +0800 |
---|---|---|
committer | adridg <adridg@FreeBSD.org> | 2018-08-28 05:19:57 +0800 |
commit | 6d73ef519c0a0de315d54177752b434eb457785a (patch) | |
tree | cc20d2f4433480c6ed470c945d26b20a3295cdc4 /japanese | |
parent | e7def78e70a395739c15723aefa43a20a826292d (diff) | |
download | freebsd-ports-gnome-6d73ef519c0a0de315d54177752b434eb457785a.tar.gz freebsd-ports-gnome-6d73ef519c0a0de315d54177752b434eb457785a.tar.zst freebsd-ports-gnome-6d73ef519c0a0de315d54177752b434eb457785a.zip |
Fix build of EOL software against modern clang.
Lots of KDE4 software contains this strange > 0 comparison for bools,
fix japanese/kiten-kde4 here.
PR: 230947
Reported by: jbeich
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/kiten-kde4/files/patch-lib_dictquery.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/japanese/kiten-kde4/files/patch-lib_dictquery.cpp b/japanese/kiten-kde4/files/patch-lib_dictquery.cpp new file mode 100644 index 000000000000..17beb5a35660 --- /dev/null +++ b/japanese/kiten-kde4/files/patch-lib_dictquery.cpp @@ -0,0 +1,13 @@ +contains() returns a bool, clang7 complains + +--- lib/dictquery.cpp.orig 2018-08-27 21:16:58 UTC ++++ lib/dictquery.cpp +@@ -459,7 +459,7 @@ QString DictQuery::operator[] ( const QS + + bool DictQuery::hasProperty( const QString &key ) const + { +- return d->entryOrder.contains( key ) > 0; ++ return d->entryOrder.contains( key ); + } + + //TODO: Add i18n handling and alternate versions of property names |