From a2fef69a6c032a50ac2c62ead4e7212a488ad238 Mon Sep 17 00:00:00 2001 From: Gulfem Savrun Yeniceri Date: Mon, 22 Jul 2024 19:15:46 +0000 Subject: [PATCH] [camera][ge2d] Add const to copy assignment https://github.com/llvm/llvm-project/pull/89652 made std::pair trivially copyable if its members are, and it caused the following issue: "error: the parameter for this explicitly-defaulted copy assignment operator is const, but a member or base requires it to be non-const". This patch adds const to copy assignment operator to fix the issue. Bug: 354627057 Change-Id: Ic3b4db830502c9a1ef5260e7b15dd24cb9ced783 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1086536 Fuchsia-Auto-Submit: Gulfem Savrun Yeniceri Reviewed-by: Matt Thiffault Commit-Queue: Auto-Submit --- src/camera/drivers/hw_accel/ge2d/ge2d_task.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camera/drivers/hw_accel/ge2d/ge2d_task.h b/src/camera/drivers/hw_accel/ge2d/ge2d_task.h index d2a38d32ae71..be05123c682b 100644 --- a/src/camera/drivers/hw_accel/ge2d/ge2d_task.h +++ b/src/camera/drivers/hw_accel/ge2d/ge2d_task.h @@ -27,7 +27,7 @@ class ScopedCanvasId { ScopedCanvasId(const ScopedCanvasId&) = delete; ScopedCanvasId& operator=(ScopedCanvasId&& other); - ScopedCanvasId& operator=(ScopedCanvasId&) = delete; + ScopedCanvasId& operator=(const ScopedCanvasId&) = delete; ~ScopedCanvasId() { Reset(); }