Skip to content

Commit

Permalink
Move list of cities instead of copying it
Browse files Browse the repository at this point in the history
Reported by Coverity.
  • Loading branch information
blabber authored and lmoureaux committed Jan 6, 2025
1 parent 3396333 commit bf5c37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/repodlgs_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit bf5c37b

Please sign in to comment.