mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Spreadsheet: Avoid implicitly copying ByteBuffer
This commit is contained in:
parent
7967a8bd8c
commit
13cba5f8b4
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
ScopeGuard update_after_drop { [this] { update(); } };
|
||||
|
||||
if (event.mime_data().has_format("text/x-spreadsheet-data")) {
|
||||
auto data = event.mime_data().data("text/x-spreadsheet-data");
|
||||
auto const& data = event.mime_data().data("text/x-spreadsheet-data");
|
||||
StringView urls { data.data(), data.size() };
|
||||
Vector<Position> source_positions, target_positions;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue