mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38: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
|
@ -420,8 +420,8 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
|
||||
ScopeGuard update_after_drop { [this] { update(); } };
|
||||
|
||||
if (event.mime_data().has_format("text/x-spreadsheet-data")) {
|
||||
auto const& data = event.mime_data().data("text/x-spreadsheet-data");
|
||||
if (event.mime_data().has_format("text/x-spreadsheet-data"sv)) {
|
||||
auto const& data = event.mime_data().data("text/x-spreadsheet-data"sv);
|
||||
StringView urls { data.data(), data.size() };
|
||||
Vector<Position> source_positions, target_positions;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue