From 13cba5f8b4341f980a439aaf9204132af8132c6c Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 28 Nov 2021 22:39:50 +0100 Subject: [PATCH] Spreadsheet: Avoid implicitly copying ByteBuffer --- Userland/Applications/Spreadsheet/SpreadsheetView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp index 30dfe96746d..cd587cb7764 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetView.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetView.cpp @@ -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 source_positions, target_positions;