[libcamera-devel] [PATCH 17/21] qcam: viewfinder: Use PixelFormat default constructor
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Mar 23 15:22:01 CET 2020
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 at ideasonboard.com>
---
src/qcam/viewfinder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qcam/viewfinder.cpp b/src/qcam/viewfinder.cpp
index e7b12015d8f6..c4471ffa4a06 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)
{
}
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list