From patchwork Mon Mar 23 17:35:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3283 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3865362CBF for ; Mon, 23 Mar 2020 18:36:22 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C6E71308 for ; Mon, 23 Mar 2020 18:36:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584984981; bh=KHky5wQDrxlrZylZbKpfKU6yMx+vbRwM5uH5RwoXuEU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d/uR5jN7GRT888MSILxik8RfJIPXfl+KldV/XphcdTJKQWReG7P1X9x7rH4ufS6Ih 8Y2pxqFjLQmeJVoaLJ7hu3yVKIa8HhmlgXc7cYPgfY73XOp+H4bdU+Y9+irYIE8uaZ Q9+0aNpls1TxcYrrd8Rk4Ow5vYjgjYPMCJ60Kts0= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 23 Mar 2020 19:35:55 +0200 Message-Id: <20200323173559.21109-18-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200323173559.21109-1-laurent.pinchart@ideasonboard.com> References: <20200323173559.21109-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 17/21] qcam: viewfinder: Use PixelFormat default constructor X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 17:36:26 -0000 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 Reviewed-by: Kieran Bingham --- 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) { }