mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Pass AK::ReadonlyBytes by value
This commit is contained in:
@@ -111,7 +111,7 @@ RefPtr<Gfx::Bitmap> Clipboard::bitmap() const
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
void Clipboard::set_data(ReadonlyBytes const& data, String const& type, HashMap<String, String> const& metadata)
|
||||
void Clipboard::set_data(ReadonlyBytes data, String const& type, HashMap<String, String> const& metadata)
|
||||
{
|
||||
auto buffer_or_error = Core::AnonymousBuffer::create_with_size(data.size());
|
||||
if (buffer_or_error.is_error()) {
|
||||
|
||||
Reference in New Issue
Block a user