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:32 +00:00
parent d94b28e4f2
commit d586fc11a7

View File

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