From 1905e1199047cf1d15fa18c52afe6c0fa6ddc785 Mon Sep 17 00:00:00 2001 From: Tobias Rehbein Date: Mon, 6 Jan 2025 20:13:25 +0100 Subject: [PATCH] Move list of cities instead of copying it Reported by Coverity. --- client/repodlgs_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/repodlgs_common.cpp b/client/repodlgs_common.cpp index 34a521962c..62e027ca15 100644 --- a/client/repodlgs_common.cpp +++ b/client/repodlgs_common.cpp @@ -178,8 +178,8 @@ void sell_all_improvements(const struct impr_type *pimprove, } city_list_iterate_end; - sell_all_improvements_for_cities(cities, pimprove, redundant_only, message, - message_sz); + sell_all_improvements_for_cities(std::move(cities), pimprove, + redundant_only, message, message_sz); } /**