1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

sysutils/qpxtool: unbreak with clang 4.0

src/mainwindow.cpp:429:9: error: ordered comparison between pointer and zero ('QAction *' and 'int')
        if (act<0) return;
            ~~~^~

Reported by:	antoine (via exp-run)
This commit is contained in:
Jan Beich 2017-02-01 05:28:13 +00:00
parent 1f3a193b8f
commit f7831b80a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432982
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= qpxtool
PORTVERSION= 0.7.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION:C/\.[^.]*$/.x/}/${DISTVERSION}

View File

@ -0,0 +1,11 @@
--- gui/src/mainwindow.cpp.orig 2012-12-03 07:13:07 UTC
+++ gui/src/mainwindow.cpp
@@ -426,7 +426,7 @@ void QPxToolMW::selectTab()
int idx;
QAction *act = (QAction*) sender();
idx = act_sblist.indexOf(act);
- if (act<0) return;
+ if (act == NULL) return;
mwidget->selectTab(idx);
}