Date: Mon, 27 Aug 2018 21:19:57 +0000 (UTC) From: Adriaan de Groot <adridg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478254 - head/japanese/kiten-kde4/files Message-ID: <201808272119.w7RLJv4O039425@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808272119.w7RLJv4O039425>