Services/ImageDecoder: Move bitmaps instead of copying them

This commit is contained in:
Lucas CHOLLET authored and Nico Weber committed 2025-03-04 18:45:14 -05:00
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;
}