From 754b514a1fcccc88d7ea191255c60fb70bbd70f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:57:13 +0300 Subject: add restrict into sdlimagehelper. --- src/resources/sdlimagehelper.cpp | 8 ++++---- src/resources/sdlimagehelper.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/resources') diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index f39ecf4cd..6e198b457 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -294,10 +294,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) { return SDL_gfxBlitRGBA(src, srcrect, dst, dstrect); } diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h index 9534f8362..ad1423596 100644 --- a/src/resources/sdlimagehelper.h +++ b/src/resources/sdlimagehelper.h @@ -87,10 +87,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); protected: /** SDL_Surface to SDL_Surface Image loader */ -- cgit v1.2.3-60-g2f50