Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2018 11:05:52 +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: r478299 - head/games/khangman-kde4/files
Message-ID:  <201808281105.w7SB5qUh067749@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adridg
Date: Tue Aug 28 11:05:52 2018
New Revision: 478299
URL: https://svnweb.freebsd.org/changeset/ports/478299

Log:
  Fix build with clang7
  
  PR:		230943
  Reported by:	jbeich

Added:
  head/games/khangman-kde4/files/
  head/games/khangman-kde4/files/patch-src_desktop_khangmanview.cpp   (contents, props changed)

Added: head/games/khangman-kde4/files/patch-src_desktop_khangmanview.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/khangman-kde4/files/patch-src_desktop_khangmanview.cpp	Tue Aug 28 11:05:52 2018	(r478299)
@@ -0,0 +1,20 @@
+--- src/desktop/khangmanview.cpp.orig	2018-08-28 11:03:47 UTC
++++ src/desktop/khangmanview.cpp
+@@ -510,7 +510,7 @@ void KHangManView::slotTry()
+ 
+         int  x = 0;
+         int  y = 0;
+-        if (m_missedLetters.contains(guess) > 0) {
++        if (m_missedLetters.contains(guess)) {
+             // FIXME: popup should be better placed.
+ 
+             QPoint abspos = popup->pos();
+@@ -527,7 +527,7 @@ void KHangManView::slotTry()
+             m_letterInput->setEnabled(false);
+         }
+ 
+-        if (goodWord.contains(guess) > 0) {
++        if (goodWord.contains(guess)) {
+             point = m_theme->goodWordPos(size(), popup->pos());
+             
+             QTimer::singleShot( Prefs::missedTimer() * 1000,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808281105.w7SB5qUh067749>