mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-09 04:50:06 -10:00
Services/ImageDecoder: Move bitmaps instead of copying them
This commit is contained in:
1 parent
1f1485c733
commit
b499dc18d5
1 file changed
+1
-1
@@ -83,7 +83,7 @@ ErrorOr<ConnectionFromClient::DecodeResult> decode_image_to_details(Core::Anonym
|
||||
if (bitmaps.is_empty() || no_frame_available)
|
||||
return Error::from_string_literal("Could not decode image");
|
||||
|
||||
result.bitmaps = Gfx::BitmapSequence { bitmaps };
|
||||
result.bitmaps = { move(bitmaps) };
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user