1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

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:
Jan Beich 2017-02-01 05:27:46 +00:00
parent 67d016a164
commit 63e76b312d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432980
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= antimicro
PORTVERSION= 2.23
PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= ports@FreeBSD.org

View 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);