diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-02-11 20:31:38 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:45:09 +0000 |
commit | 61b49daf0acd3b3511521eb8eb494d5c57610b62 (patch) | |
tree | d400309a4f9686d2c2a62b6ea74f17ad3e930f9d /Userland | |
parent | 67ffc687d81ac0073912889036d6f394547cf2b9 (diff) | |
download | serenity-61b49daf0acd3b3511521eb8eb494d5c57610b62.zip |
LibGUI: Make Clipboard::set_plain_text take text as a StringView
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/Clipboard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Clipboard.h b/Userland/Libraries/LibGUI/Clipboard.h index f719829fea..18fbe33e43 100644 --- a/Userland/Libraries/LibGUI/Clipboard.h +++ b/Userland/Libraries/LibGUI/Clipboard.h @@ -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(); |