Skip to content

Commit 575718e

Browse files
SiarheiFedartsoumattwigway
authored andcommitted
Move vector in CSVFilesParser instead copying it (Project-OSRM#6470)
1 parent 0ae9df9 commit 575718e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- NodeJS:
99
- CHANGED: Use node-api instead of NAN. [#6452](https://github.com/Project-OSRM/osrm-backend/pull/6452)
1010
- Misc:
11+
- CHANGED: Move vector in CSVFilesParser instead copying it. [#6470](https://github.com/Project-OSRM/osrm-backend/pull/6470)
1112
- REMOVED: Get rid of unused functions in util/json_util.hpp. [#6446](https://github.com/Project-OSRM/osrm-backend/pull/6446)
1213
- FIXED: Apply workaround for Conan installation issue on CI. [#6442](https://github.com/Project-OSRM/osrm-backend/pull/6442)
1314
- FIXED: Fix `npm audit` warnings in NPM package. [#6437](https://github.com/Project-OSRM/osrm-backend/pull/6437)

include/updater/csv_file_parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ template <typename Key, typename Value> struct CSVFilesParser
7878
util::Log() << "In total loaded " << csv_filenames.size() << " file(s) with a total of "
7979
<< lookup.size() << " unique values";
8080

81-
return LookupTable<Key, Value>{lookup};
81+
return LookupTable<Key, Value>{std::move(lookup)};
8282
}
8383
catch (const std::exception &e)
8484
// TBB should capture to std::exception_ptr and automatically rethrow in this thread.

0 commit comments

Comments
 (0)