mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +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(); } };
|
ScopeGuard update_after_drop { [this] { update(); } };
|
||||||
|
|
||||||
if (event.mime_data().has_format("text/x-spreadsheet-data")) {
|
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() };
|
StringView urls { data.data(), data.size() };
|
||||||
Vector<Position> source_positions, target_positions;
|
Vector<Position> source_positions, target_positions;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue