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:
parent
1f3a193b8f
commit
f7831b80a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432982
@ -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}
|
||||
|
||||
|
11
sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp
Normal file
11
sysutils/qpxtool/files/patch-gui_src_mainwindow.cpp
Normal 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user