mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 10:50:49 +00:00
Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
d94b28e4f2
commit
d586fc11a7
@ -68,7 +68,7 @@ template <typename T> variant convert_vector( const std::vector<T>& input_vector
|
||||
class terrain_callable : public game_logic::formula_callable {
|
||||
public:
|
||||
typedef map_location location;
|
||||
terrain_callable(const terrain_type& t, const location loc)
|
||||
terrain_callable(const terrain_type& t, const location& loc)
|
||||
: loc_(loc), t_(t)
|
||||
{
|
||||
type_ = TERRAIN_C;
|
||||
|
Loading…
x
Reference in New Issue
Block a user