mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:37:35 +00:00
LibIPC: Explicitly mark HashMap copy, offer move interface
This commit is contained in:
parent
688d8febe4
commit
362773d4a6
4 changed files with 8 additions and 8 deletions
|
@ -71,5 +71,5 @@ void ConnectionToClipboardServer::set_bitmap(Gfx::Bitmap const& bitmap)
|
|||
VERIFY(!buffer_or_error.is_error());
|
||||
auto buffer = buffer_or_error.release_value();
|
||||
memcpy(buffer.data<u8>(), data.data(), data.size());
|
||||
this->async_set_clipboard_data(buffer, "image/x-serenityos", metadata);
|
||||
this->async_set_clipboard_data(buffer, "image/x-serenityos", move(metadata));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue