[vlc-commits] Qt: Pictureflow: kill some warnings

Francois Cartegnie git at videolan.org
Thu Jul 19 18:02:00 CEST 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jul 19 18:01:27 2012 +0200| [08bc63f0347420ae69b29c3dffe53787a2c78da8] | committer: Francois Cartegnie

Qt: Pictureflow: kill some warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=08bc63f0347420ae69b29c3dffe53787a2c78da8
---

 modules/gui/qt4/util/pictureflow.cpp |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/qt4/util/pictureflow.cpp b/modules/gui/qt4/util/pictureflow.cpp
index 4325491..5c8ae0a 100644
--- a/modules/gui/qt4/util/pictureflow.cpp
+++ b/modules/gui/qt4/util/pictureflow.cpp
@@ -338,6 +338,7 @@ static QRgb blendColor(QRgb c1, QRgb c2, int blend)
 static QImage* prepareSurface(const QImage* slideImage, int w, int h, QRgb bgcolor,
                               PictureFlow::ReflectionEffect reflectionEffect, QModelIndex index)
 {
+    Q_UNUSED(bgcolor);
     Qt::TransformationMode mode = Qt::SmoothTransformation;
     QImage img = slideImage->scaled(w, h, Qt::KeepAspectRatio, mode);
 
@@ -1115,12 +1116,16 @@ void PictureFlowPrivate::triggerRender()
 
 void PictureFlowPrivate::insertSlide(int index, const QImage& image)
 {
+    Q_UNUSED(index);
+    Q_UNUSED(image);
 //    state->slideImages.insert(index, new QImage(image));
 //    triggerRender();
 }
 
 void PictureFlowPrivate::replaceSlide(int index, const QImage& image)
 {
+    Q_UNUSED(index);
+    Q_UNUSED(image);
 //    Q_ASSERT((index >= 0) && (index < state->slideImages.count()));
 
 //    QImage* i = image.isNull() ? 0 : new QImage(image);
@@ -1131,6 +1136,7 @@ void PictureFlowPrivate::replaceSlide(int index, const QImage& image)
 
 void PictureFlowPrivate::removeSlide(int index)
 {
+    Q_UNUSED(index);
 //    delete state->slideImages[index];
 //    state->slideImages.remove(index);
 //    triggerRender();



More information about the vlc-commits mailing list