Two minor static analysis issues.
authorMichael Goddard <michael.goddard@nokia.com>
Mon, 27 Jun 2011 02:00:33 +0000 (12:00 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jul 2011 04:49:59 +0000 (06:49 +0200)
Reviewed-by: Jonas Rabbe
(cherry picked from commit f8d04d717d3d7d5d2f73cc3e8a4245130fcf600a)

Change-Id: I3b12fd3a42d16730df3fe1277ba6821b5c2ef960
Reviewed-on: http://codereview.qt.nokia.com/982
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard
src/multimediakit/qcameraviewfinder.cpp
src/multimediakit/video/qvideosurfaceformat.cpp

index dc779c6..8613616 100644 (file)
@@ -107,8 +107,6 @@ QMediaObject *QCameraViewfinder::mediaObject() const
 */
 bool QCameraViewfinder::setMediaObject(QMediaObject *object)
 {
-    Q_D(QCameraViewfinder);
-
     return QVideoWidget::setMediaObject(object);
 }
 
index 58b2baa..c384093 100644 (file)
@@ -689,6 +689,7 @@ QDebug operator<<(QDebug dbg, const QVideoSurfaceFormat &f)
         break;
     case QVideoFrame::Format_Y16:
         typeName = QLatin1String("Format_Y16");
+        break;
     default:
         typeName = QString(QLatin1String("UserType(%1)" )).arg(int(f.pixelFormat()));
     }