Fixed compile.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 23 Jan 2012 00:07:58 +0000 (10:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 23 Jan 2012 00:29:56 +0000 (01:29 +0100)
Removed usage of QBool.

Change-Id: I5e1db9cd3e833a196d73a3493967daa573200c77
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
tests/auto/unit/qpaintervideosurface/tst_qpaintervideosurface.cpp

index 805264a..7107fa0 100644 (file)
@@ -353,7 +353,7 @@ void tst_QPainterVideoSurface::supportedFormat()
 
     const QList<QVideoFrame::PixelFormat> pixelFormats = surface.supportedPixelFormats(handleType);
 
-    QCOMPARE(pixelFormats.contains(pixelFormat), QBool(supportedPixelFormat));
+    QCOMPARE(pixelFormats.contains(pixelFormat), supportedPixelFormat);
 
     QVideoSurfaceFormat format(frameSize, pixelFormat, handleType);
 
@@ -917,7 +917,7 @@ void tst_QPainterVideoSurface::shaderSupportedFormat()
 
     const QList<QVideoFrame::PixelFormat> pixelFormats = surface.supportedPixelFormats(handleType);
 
-    QCOMPARE(pixelFormats.contains(pixelFormat), QBool(supportedPixelFormat));
+    QCOMPARE(pixelFormats.contains(pixelFormat), supportedPixelFormat);
 
     QVideoSurfaceFormat format(frameSize, pixelFormat, handleType);