From 464afe0bfe3157fa931d492055a3c001bf50312e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:54:11 +0300 Subject: add restrict into sdl2imagehelper. --- src/resources/sdl2imagehelper.cpp | 8 ++++---- src/resources/sdl2imagehelper.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index c3481a1b5..0ea97c5f4 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -163,10 +163,10 @@ SDL_Surface *SDLImageHelper::create32BitSurface(int width, int height) const width, height, 32, rmask, gmask, bmask, amask); } -int SDLImageHelper::combineSurface(SDL_Surface *const src, - SDL_Rect *const srcrect, - SDL_Surface *const dst, - SDL_Rect *const dstrect) +int SDLImageHelper::combineSurface(SDL_Surface *restrict const src, + SDL_Rect *restrict const srcrect, + SDL_Surface *restrict const dst, + SDL_Rect *restrict const dstrect) { SDL_SetSurfaceBlendMode(src, SDL_BLENDMODE_BLEND); SDL_BlitSurface(src, srcrect, dst, dstrect); diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h index d951422e5..46914e2a2 100644 --- a/src/resources/sdl2imagehelper.h +++ b/src/resources/sdl2imagehelper.h @@ -86,10 +86,10 @@ class SDLImageHelper final : public ImageHelper SDL_Surface *create32BitSurface(int width, int height) const override final; - static int combineSurface(SDL_Surface *const src, - SDL_Rect *const srcrect, - SDL_Surface *const dst, - SDL_Rect *const dstrect); + static int combineSurface(SDL_Surface *restrict const src, + SDL_Rect *restrict const srcrect, + SDL_Surface *restrict const dst, + SDL_Rect *restrict const dstrect); #ifdef USE_SDL2 static void setRenderer(SDL_Renderer *const renderer) -- cgit v1.2.3-60-g2f50