mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibGUI: Make the Clipboard API deal in raw byte buffers a bit more
To open up for putting not just text/plain content on the clipboard, let's make the GUI::Clipboard API a bit more raw-data-friendly. :^)
This commit is contained in:
parent
802f541184
commit
51146e3075
12 changed files with 43 additions and 38 deletions
|
@ -80,7 +80,7 @@ int main(int argc, char* argv[])
|
|||
Options options = parse_options(argc, argv);
|
||||
|
||||
auto& clipboard = GUI::Clipboard::the();
|
||||
clipboard.set_data(options.data, options.type);
|
||||
clipboard.set_data(options.data.bytes(), options.type);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue