Spreadsheet: Avoid implicitly copying ByteBuffer
This commit is contained in:
parent
7967a8bd8c
commit
13cba5f8b4
Notes:
sideshowbarker
2024-07-17 23:04:05 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/13cba5f8b43 Pull-request: https://github.com/SerenityOS/serenity/pull/11142 Reviewed-by: https://github.com/IdanHo
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