svn commit: r478254 - head/japanese/kiten-kde4/files

Adriaan de Groot adridg at FreeBSD.org
Mon Aug 27 21:19:58 UTC 2018


Author: adridg
Date: Mon Aug 27 21:19:57 2018
New Revision: 478254
URL: https://svnweb.freebsd.org/changeset/ports/478254

Log:
  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

Added:
  head/japanese/kiten-kde4/files/
  head/japanese/kiten-kde4/files/patch-lib_dictquery.cpp   (contents, props changed)

Added: head/japanese/kiten-kde4/files/patch-lib_dictquery.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/japanese/kiten-kde4/files/patch-lib_dictquery.cpp	Mon Aug 27 21:19:57 2018	(r478254)
@@ -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


More information about the svn-ports-all mailing list