svn commit: r471526 - in head/cad/qfsm: . files
Don Lewis
truckman at FreeBSD.org
Sun Jun 3 23:41:54 UTC 2018
Author: truckman
Date: Sun Jun 3 23:41:53 2018
New Revision: 471526
URL: https://svnweb.freebsd.org/changeset/ports/471526
Log:
Unbreak qfsm build with clang 6.0 by fixing two instances of:
error: cannot initialize return object of type 'Project *' with an
rvalue of type 'bool'
Pet portlint.
Added:
head/cad/qfsm/files/patch-src_FileIO.cpp (contents, props changed)
Modified:
head/cad/qfsm/Makefile
Modified: head/cad/qfsm/Makefile
==============================================================================
--- head/cad/qfsm/Makefile Sun Jun 3 23:20:14 2018 (r471525)
+++ head/cad/qfsm/Makefile Sun Jun 3 23:41:53 2018 (r471526)
@@ -14,10 +14,10 @@ LICENSE= GPLv3+
OPTIONS_DEFINE= GRAPHVIZ DOCS EXAMPLES
+USES= tar:bzip2 cmake desktop-file-utils
USE_XORG= xi
USE_QT4= corelib gui qt3support svg xml \
moc_build qmake_build rcc_build uic_build
-USES= tar:bzip2 cmake desktop-file-utils
INSTALLS_ICONS= yes
GRAPHVIZ_BUILD_DEPENDS= graphviz>=2.22:graphics/graphviz
Added: head/cad/qfsm/files/patch-src_FileIO.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/cad/qfsm/files/patch-src_FileIO.cpp Sun Jun 3 23:41:53 2018 (r471526)
@@ -0,0 +1,20 @@
+--- src/FileIO.cpp.orig 2015-01-02 18:01:46 UTC
++++ src/FileIO.cpp
+@@ -1617,7 +1617,7 @@ Project* FileIO::importFile(Import* imp, ScrollView* s
+ QString ext;
+
+ if (!imp)
+- return FALSE;
++ return NULL;
+
+ Project* p=NULL;
+ importdlg->setAcceptMode(QFileDialog::AcceptOpen);
+@@ -1641,7 +1641,7 @@ Project* FileIO::importFile(Import* imp, ScrollView* s
+ ifstream fin(act_importfile);
+
+ if (!fin)
+- return FALSE;
++ return NULL;
+
+ emit setWaitCursor();
+
More information about the svn-ports-head
mailing list