Pass parameter by const ref instead of const value.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-09-17 19:15:48 +00:00
parent 327c99cee3
commit 6c3fc4aced

View file

@ -735,7 +735,7 @@ protected:
{
public:
tblit(const tdrawing_layer layer, const map_location& loc,
const int x, const int y, const surface surf,
const int x, const int y, const surface& surf,
const SDL_Rect& clip)
: x_(x), y_(y), surf_(1, surf), clip_(clip),
key_(loc, layer)