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:
parent
9d5dbf1d9d
commit
5416909df8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432970
13
audio/mixxx/files/patch-src_widget_wdisplay.cpp
Normal file
13
audio/mixxx/files/patch-src_widget_wdisplay.cpp
Normal 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
|
Loading…
Reference in New Issue
Block a user