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:33 +00:00
parent 6f963d4bd3
commit 327c99cee3
2 changed files with 2 additions and 2 deletions

View file

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

View file

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