mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird: Remove unnecessary copy of decoded images
This also eliminates the clang-tidy warning “Std::move of the const expression has no effect”.
This commit is contained in:
parent
84ab8bf797
commit
ff170de49d
Notes:
github-actions[bot]
2024-08-26 06:11:31 +00:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/ff170de49df Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1190
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ NonnullRefPtr<Core::Promise<Web::Platform::DecodedImage>> ImageCodecPlugin::deco
|
||||||
Web::Platform::DecodedImage decoded_image;
|
Web::Platform::DecodedImage decoded_image;
|
||||||
decoded_image.is_animated = result.is_animated;
|
decoded_image.is_animated = result.is_animated;
|
||||||
decoded_image.loop_count = result.loop_count;
|
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);
|
decoded_image.frames.empend(move(frame.bitmap), frame.duration);
|
||||||
}
|
}
|
||||||
promise->resolve(move(decoded_image));
|
promise->resolve(move(decoded_image));
|
||||||
|
|
Loading…
Reference in a new issue