mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Make Clipboard::set_plain_text take text as a StringView
This commit is contained in:
parent
67ffc687d8
commit
61b49daf0a
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/krkk
Commit: 61b49daf0a
Pull-request: https://github.com/SerenityOS/serenity/pull/17454
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
DeprecatedString fetch_mime_type() const { return fetch_data_and_type().mime_type; }
|
||||
|
||||
void set_data(ReadonlyBytes data, DeprecatedString const& mime_type = "text/plain", HashMap<DeprecatedString, DeprecatedString> const& metadata = {});
|
||||
void set_plain_text(DeprecatedString const& text) { set_data(text.bytes()); }
|
||||
void set_plain_text(StringView text) { set_data(text.bytes()); }
|
||||
void set_bitmap(Gfx::Bitmap const&, HashMap<DeprecatedString, DeprecatedString> const& additional_metadata = {});
|
||||
void clear();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue