mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 17:47:56 +00:00
Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
d586fc11a7
commit
85aa1a444d
@ -128,7 +128,7 @@ public:
|
||||
class attack_type_callable : public game_logic::formula_callable {
|
||||
public:
|
||||
typedef map_location location;
|
||||
attack_type_callable(const attack_type attack)
|
||||
attack_type_callable(const attack_type& attack)
|
||||
: att_(attack)
|
||||
{
|
||||
type_ = ATTACK_TYPE_C;
|
||||
|
Loading…
x
Reference in New Issue
Block a user