mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 15:23:18 +00:00
Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
e16466de28
commit
d94b28e4f2
@ -474,7 +474,7 @@ namespace game_events {
|
||||
}
|
||||
|
||||
bool conditional_passed(const unit_map* units,
|
||||
const vconfig cond, bool backwards_compat)
|
||||
const vconfig& cond, bool backwards_compat)
|
||||
{
|
||||
bool allow_backwards_compat = backwards_compat = backwards_compat &&
|
||||
utils::string_bool(cond["backwards_compat"],true);
|
||||
|
@ -181,7 +181,7 @@ namespace game_events
|
||||
const config& data=config());
|
||||
|
||||
bool conditional_passed(const unit_map* units,
|
||||
const vconfig cond, bool backwards_compat=true);
|
||||
const vconfig& cond, bool backwards_compat=true);
|
||||
|
||||
/**
|
||||
* Handles newly-created handlers. Flushes WML messages and errors.
|
||||
|
Loading…
x
Reference in New Issue
Block a user