summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-23 02:34:36 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-24 10:34:06 +0200
commitdc830e0e5f429fa2d17129d6d9f79c9c4c711f6e (patch)
tree67dfa7b136fb9f6b3c2e5387c63ce41a56b80547 /src
parentc6cbe507c1b741c145df015fe8fa73faa35c6c1a (diff)
qcam: viewfinder: Use PixelFormat default constructor
There's no need to initialize the PixelFormat stored in ViewFinder explicitly, as PixelFormat is now a class with a default constructor. Remove the initialization. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/qcam/viewfinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index e7b12015..c4471ffa 100644
--- a/src/qcam/viewfinder.cpp
+++ b/src/qcam/viewfinder.cpp
@@ -16,7 +16,7 @@
#include "format_converter.h"
ViewFinder::ViewFinder(QWidget *parent)
- : QWidget(parent), format_(0)
+ : QWidget(parent)
{
}