Pass parameter by const ref instead of const value.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-10-02 19:25:28 +00:00
parent e16466de28
commit d94b28e4f2
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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.