Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
327c99cee3
commit
6c3fc4aced
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue