From patchwork Sun Mar 10 14:30:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 19651 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id BA01FBD160 for ; Sun, 10 Mar 2024 14:30:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 22E98628AC; Sun, 10 Mar 2024 15:30:45 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=protonmail.com header.i=@protonmail.com header.b="P5/BRMm1"; dkim-atps=neutral Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4256861C81 for ; Sun, 10 Mar 2024 15:30:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1710081043; x=1710340243; bh=IK4eeGV6FPOsisExRqFI1ZwgwtNoZJ0iwaa/NHmZOkQ=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=P5/BRMm1DkeNTbB/qH+BjEEgme4Tfn2rVMtwSVaZ4YHRAeKEQEm/lKYThss+vOCZB ERmN0KuYEn6IKZxDbPcfS7a7VHe9UYroOVlh/zVpIl7hfaBBT3rxNSQOKVHlaItKWZ hPU0rUwHUpPXRcELSGAvO/9DOzHGa7imzcxABErqAHXr/872nbVVE3De73rbVum8Y1 UCy8eg142iz7+IslZpG65L+ej1V+xVs+AcOeMUSUlJsfhs7YkIYmWcISDRPoeUFmqO b3PJ8x7yNGJGJ46a/XxoNMmbg9cLHHt2titT0xb3dqN8s/WT9jwK8aptuezAf78bmj h3CKvhI0Yki9Q== Date: Sun, 10 Mar 2024 14:30:38 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [PATCH v2 2/3] libcamera: framebuffer_allocator: Use default destructor Message-ID: <20240310143023.752559-3-pobrn@protonmail.com> In-Reply-To: <20240310143023.752559-1-pobrn@protonmail.com> References: <20240310143023.752559-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The compiler generated destructor works fine, so use that. Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/libcamera/framebuffer_allocator.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libcamera/framebuffer_allocator.cpp b/src/libcamera/framebuffer_allocator.cpp index 8cf45ab2..fc19a33a 100644 --- a/src/libcamera/framebuffer_allocator.cpp +++ b/src/libcamera/framebuffer_allocator.cpp @@ -63,10 +63,7 @@ FrameBufferAllocator::FrameBufferAllocator(std::shared_ptr camera) { } -FrameBufferAllocator::~FrameBufferAllocator() -{ - buffers_.clear(); -} +FrameBufferAllocator::~FrameBufferAllocator() = default; /** * \brief Allocate buffers for a configured stream