Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2018 09:16:21 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478345 - head/graphics/lprof-devel/files
Message-ID:  <201808290916.w7T9GLL0060890@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Aug 29 09:16:21 2018
New Revision: 478345
URL: https://svnweb.freebsd.org/changeset/ports/478345

Log:
  - Fix build with clang 7
  
  PR:		230948
  Reported by:	jbeich

Added:
  head/graphics/lprof-devel/files/patch-src_lprofqt_imageitem.cpp   (contents, props changed)

Added: head/graphics/lprof-devel/files/patch-src_lprofqt_imageitem.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/lprof-devel/files/patch-src_lprofqt_imageitem.cpp	Wed Aug 29 09:16:21 2018	(r478345)
@@ -0,0 +1,19 @@
+--- src/lprofqt/imageitem.cpp.orig	2008-03-06 21:18:58 UTC
++++ src/lprofqt/imageitem.cpp
+@@ -174,11 +174,11 @@ void ImageItem::Reload(QString ImageFile
+ 
+     image_file_name = ImageFile;
+     QString pixtype = QString::fromLocal8Bit(image_data->getPixelType());
+-    int16lprof = (pixtype.contains(QString::fromLocal8Bit("INT16")) > 0);
+-    int32lprof = (pixtype.contains(QString::fromLocal8Bit("INT32")) > 0);
+-    uint8lprof = (pixtype.contains(QString::fromLocal8Bit("UINT8")) > 0);
+-    fltpixlprof = (pixtype.contains(QString::fromLocal8Bit("FLOAT")) > 0);
+-    dblpixlprof = (pixtype.contains(QString::fromLocal8Bit("DOUBLE")) > 0);
++    int16lprof = pixtype.contains(QString::fromLocal8Bit("INT16"));
++    int32lprof = pixtype.contains(QString::fromLocal8Bit("INT32"));
++    uint8lprof = pixtype.contains(QString::fromLocal8Bit("UINT8"));
++    fltpixlprof = pixtype.contains(QString::fromLocal8Bit("FLOAT"));
++    dblpixlprof = pixtype.contains(QString::fromLocal8Bit("DOUBLE"));
+ 
+     // try again
+     vigra::DRGBImage in(image_data->width(), image_data->height());



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