QtMultiMedia/Tests: Fix MSVC2012 warning about overload.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 24 Jul 2012 12:53:25 +0000 (14:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jul 2012 01:27:17 +0000 (03:27 +0200)
warning C4373: 'MockVideoSurface::supportedPixelFormats': virtual function
overrides 'QAbstractVideoSurface::supportedPixelFormats', previous versions
of the compiler did not override when parameters only differed by
const/volatile qualifiers.

Change-Id: I87701ce0a2db3d4a0ec0a98980ad231f352a2ab2
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
tests/auto/unit/qmultimedia_common/mockvideosurface.h

index 51d758e..2a67fbf 100644 (file)
@@ -48,7 +48,7 @@ class MockVideoSurface : public QAbstractVideoSurface
 {
 public:
     QList<QVideoFrame::PixelFormat> supportedPixelFormats(
-            const QAbstractVideoBuffer::HandleType) const
+            QAbstractVideoBuffer::HandleType = QAbstractVideoBuffer::NoHandle) const
     {
         return QList<QVideoFrame::PixelFormat>();
     }