mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05: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
Reference in a new issue