Enable performance-move-const-arg clang-tidy check (#6319)

This commit is contained in:
Siarhei Fedartsou
2022-08-23 19:03:41 +02:00
committed by GitHub
parent 869b3fae82
commit 8e74b7af9d
19 changed files with 55 additions and 63 deletions
@@ -851,7 +851,7 @@ InternalManyRoutesResult alternativePathSearch(SearchEngineData<Algorithm> &sear
const auto extract_packed_path_from_heaps = [&](WeightedViaNode via) {
auto packed_path = retrievePackedPathFromHeap(forward_heap, reverse_heap, via.node);
return WeightedViaNodePackedPath{std::move(via), std::move(packed_path)};
return WeightedViaNodePackedPath{via, std::move(packed_path)};
};
std::vector<WeightedViaNodePackedPath> weighted_packed_paths;