]> git.sesse.net Git - vlc/commitdiff
Qt: be compatible with Qt5
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Feb 2014 15:09:41 +0000 (16:09 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Feb 2014 15:09:41 +0000 (16:09 +0100)
modules/gui/qt4/dialogs/plugins.cpp

index 666fd3796e693d39d3d752256543a372c5b1285f..d2bb5c05b04778fc4001cf6b8f82db683a378a27 100644 (file)
@@ -307,7 +307,7 @@ static QPixmap hueRotate( QImage image, const QColor &source, const QColor &targ
 {
     int distance = target.hue() - source.hue();
     /* must be indexed as we alter palette, not a whole pic */
-    Q_ASSERT( image.numColors() );
+    Q_ASSERT( image.colorCount() );
     if ( target.isValid() )
     {
         /* color 1 = transparency */