Pass parameter by const ref instead of const value.
Issue found by cppcheck.
This commit is contained in:
parent
6f963d4bd3
commit
327c99cee3
2 changed files with 2 additions and 2 deletions
|
@ -804,7 +804,7 @@ std::vector<surface> display::get_terrain_images(const map_location &loc,
|
|||
}
|
||||
|
||||
void display::drawing_buffer_add(const tdrawing_layer layer,
|
||||
const map_location& loc, int x, int y, const surface surf,
|
||||
const map_location& loc, int x, int y, const surface& surf,
|
||||
const SDL_Rect &clip)
|
||||
{
|
||||
drawing_buffer_.push_back(tblit(layer, loc, x, y, surf, clip));
|
||||
|
|
|
@ -780,7 +780,7 @@ public:
|
|||
* @param blit The structure to blit.
|
||||
*/
|
||||
void drawing_buffer_add(const tdrawing_layer layer,
|
||||
const map_location& loc, int x, int y, const surface surf,
|
||||
const map_location& loc, int x, int y, const surface& surf,
|
||||
const SDL_Rect &clip = SDL_Rect());
|
||||
|
||||
void drawing_buffer_add(const tdrawing_layer layer,
|
||||
|
|
Loading…
Add table
Reference in a new issue