mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 15:09:10 +00:00
Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
ff27cb8f63
commit
b73d1ac9b8
@ -853,7 +853,7 @@ double testing_move_to_targets_phase::rate_group(const std::set<map_location>& g
|
||||
|
||||
|
||||
|
||||
bool testing_move_to_targets_phase::should_retreat(const map_location& loc, const unit_map::const_iterator un,
|
||||
bool testing_move_to_targets_phase::should_retreat(const map_location& loc, const unit_map::const_iterator& un,
|
||||
const move_map& srcdst, const move_map& dstsrc, const move_map& enemy_dstsrc,
|
||||
double caution)
|
||||
{
|
||||
|
@ -74,7 +74,7 @@ protected:
|
||||
const move_map& dstsrc, const move_map& enemy_dstsrc,
|
||||
const plain_route& rt);
|
||||
|
||||
bool should_retreat(const map_location& loc, const unit_map::const_iterator un,
|
||||
bool should_retreat(const map_location& loc, const unit_map::const_iterator& un,
|
||||
const move_map& srcdst, const move_map& dstsrc, const move_map& enemy_dstsrc,
|
||||
double caution);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user