[PATCH] fix invalid Q_UNUSED

Martin darklight.xdarklight at googlemail.com
Mon Sep 14 20:37:41 CEST 2009


Hi,

while doing crazy stuff with amarok's code
I've found some invalid Q_UNUSED
actually that parameter IS used (3 lines below)

here's my patch:

diff --git a/src/context/applets/videoclip/VideoclipApplet.cpp
b/src/context/applets/videoclip/VideoclipApplet.cpp
index 3b30b38..23b1307 100644
--- a/src/context/applets/videoclip/VideoclipApplet.cpp
+++ b/src/context/applets/videoclip/VideoclipApplet.cpp
@@ -277,7 +277,6 @@ VideoclipApplet::constraintsEvent(
Plasma::Constraints constraints )
 void
 VideoclipApplet::paintInterface( QPainter *p, const
QStyleOptionGraphicsItem *option, const QRect &contentsRect )
 {
-    Q_UNUSED( p );
     Q_UNUSED( option );
     Q_UNUSED( contentsRect );
     p->setRenderHint( QPainter::Antialiasing );


Regards,
Martin


More information about the Amarok-devel mailing list