Skip to content

Commit

Permalink
Use references where NULL pointers aren't allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jun 8, 2014
1 parent 970c36b commit 8db561f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdl/rect.hpp
Expand Up @@ -142,10 +142,10 @@ inline void fill_rect(surface& dst, SDL_Rect* dst_rect, const Uint32 color)
}

#if SDL_VERSION_ATLEAST(2,0,0)
void fill_rect(SDL_Renderer *rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
void fill_rect(SDL_Renderer &rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
Uint8 a);

void draw_rect(SDL_Renderer *rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
void draw_rect(SDL_Renderer &rnd, SDL_Rect *rect, Uint8 r, Uint8 g, Uint8 b,
Uint8 a);
#endif
} // namespace sdl
Expand Down

0 comments on commit 8db561f

Please sign in to comment.