소스 검색

Ladybird: Remove unnecessary copy of decoded images

This also eliminates the clang-tidy warning “Std::move of the const
expression has no effect”.
sideshowbarker 10 달 전
부모
커밋
ff170de49d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Ladybird/ImageCodecPlugin.cpp

+ 1 - 1
Ladybird/ImageCodecPlugin.cpp

@@ -51,7 +51,7 @@ NonnullRefPtr<Core::Promise<Web::Platform::DecodedImage>> 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));