1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

audio/mixxx: unbreak with clang 4.0

src/widget/wdisplay.cpp:89:19: error: ordered comparison between pointer and zero ('QPixmap **' and 'int')
    if (m_pPixmaps>0)
        ~~~~~~~~~~^~

PR:		216354
Reported by:	antoine (via exp-run)
Submitted by:	tcberner
This commit is contained in:
Jan Beich 2017-02-01 05:25:29 +00:00
parent 9d5dbf1d9d
commit 5416909df8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432970

View File

@ -0,0 +1,13 @@
Fix bogus pointer comparison.
--- src/widget/wdisplay.cpp.orig 2013-05-08 23:20:26 UTC
+++ src/widget/wdisplay.cpp
@@ -86,7 +86,7 @@ void WDisplay::setPixmap(int iPos, const
void WDisplay::paintEvent(QPaintEvent *)
{
- if (m_pPixmaps>0)
+ if (m_pPixmaps)
{
int idx = (int)(m_fValue*(float)(m_iNoPos)/128.);
// Range check