From ff170de49dfae56d123fb5e8bb61825e7cd16f5c Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Mon, 26 Aug 2024 09:57:07 +0900 Subject: [PATCH] Ladybird: Remove unnecessary copy of decoded images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also eliminates the clang-tidy warning “Std::move of the const expression has no effect”. --- Ladybird/ImageCodecPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/ImageCodecPlugin.cpp b/Ladybird/ImageCodecPlugin.cpp index 8a9d71fe950..45cf2ba4225 100644 --- a/Ladybird/ImageCodecPlugin.cpp +++ b/Ladybird/ImageCodecPlugin.cpp @@ -51,7 +51,7 @@ NonnullRefPtr> ImageCodecPlugin::deco Web::Platform::DecodedImage decoded_image; decoded_image.is_animated = result.is_animated; decoded_image.loop_count = result.loop_count; - for (auto const& frame : result.frames) { + for (auto& frame : result.frames) { decoded_image.frames.empend(move(frame.bitmap), frame.duration); } promise->resolve(move(decoded_image));