From 18a1b7aa0f61e879c8b5ca477e9212cb15506ac6 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Tue, 29 Nov 2022 18:31:15 +0100 Subject: [PATCH] Move vector in CSVFilesParser instead copying it --- include/updater/csv_file_parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/updater/csv_file_parser.hpp b/include/updater/csv_file_parser.hpp index c9841798e..92c3dcabb 100644 --- a/include/updater/csv_file_parser.hpp +++ b/include/updater/csv_file_parser.hpp @@ -78,7 +78,7 @@ template struct CSVFilesParser util::Log() << "In total loaded " << csv_filenames.size() << " file(s) with a total of " << lookup.size() << " unique values"; - return LookupTable{lookup}; + return LookupTable{std::move(lookup)}; } catch (const std::exception &e) // TBB should capture to std::exception_ptr and automatically rethrow in this thread.