From patchwork Mon Mar 23 14:22:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3260 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3E44662C2B for ; Mon, 23 Mar 2020 15:22:24 +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 CB676A31 for ; Mon, 23 Mar 2020 15:22:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584973344; bh=Q4UdvPFVtoI31fxhYLw/8tgK0UG7RFoZBa6ByFz7KL4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wU3Hg419AdyGmX7X6APrCg1ywgXZeJNfB8GeXaUKrfL23J8gqjuhmG1SOiv4opeYK yaVMwycDB26bDQPoSoBg4SLDR5Ib0sGt2PA6TxVM+7lbZEflhNYXqOXoE6+HuwJ7IN NRdVIcIkSN0fXBVgIgOAEx62Cz1flJMGkn/VuvaQ= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 23 Mar 2020 16:22:01 +0200 Message-Id: <20200323142205.28342-18-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200323142205.28342-1-laurent.pinchart@ideasonboard.com> References: <20200323142205.28342-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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 14:22:28 -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) { }