x11/antimicro: unbreak with clang 4.0
src/mainwindow.cpp:367:19: error: ordered comparison between pointer and zero ('QMap<SDL_JoystickID, InputDevice *> *' (aka 'QMap<int, InputDevice *> *') and 'int') if (joysticks > 0) ~~~~~~~~~ ^ ~ PR: 216358 Reported by: antoine (via exp-run)
This commit is contained in:
parent
67d016a164
commit
63e76b312d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432980
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= antimicro
|
||||
PORTVERSION= 2.23
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= x11
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
11
x11/antimicro/files/patch-src_mainwindow.cpp
Normal file
11
x11/antimicro/files/patch-src_mainwindow.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/mainwindow.cpp.orig 2016-11-06 01:23:03 UTC
|
||||
+++ src/mainwindow.cpp
|
||||
@@ -364,7 +364,7 @@ void MainWindow::makeJoystickTabs()
|
||||
ui->tabWidget->addTab(tabwidget, joytabName);
|
||||
}
|
||||
|
||||
- if (joysticks > 0)
|
||||
+ if (joysticks->size() > 0)
|
||||
{
|
||||
ui->tabWidget->setCurrentIndex(0);
|
||||
ui->stackedWidget->setCurrentIndex(1);
|
Loading…
Reference in New Issue
Block a user