mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Userland: Take StringView in MimeData::data() and has_{format,text,urls}
This commit is contained in:
parent
d054116012
commit
4f638d3af2
4 changed files with 9 additions and 9 deletions
|
@ -153,7 +153,7 @@ RefPtr<Core::MimeData> SheetModel::mime_data(const GUI::ModelSelection& selectio
|
|||
VERIFY(cursor);
|
||||
|
||||
Position cursor_position { (size_t)cursor->column(), (size_t)cursor->row() };
|
||||
auto mime_data_buffer = mime_data->data("text/x-spreadsheet-data");
|
||||
auto mime_data_buffer = mime_data->data("text/x-spreadsheet-data"sv);
|
||||
auto new_data = DeprecatedString::formatted("{}\n{}",
|
||||
cursor_position.to_url(m_sheet).to_deprecated_string(),
|
||||
StringView(mime_data_buffer));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue