From f08d1cf0131fbfa10950e7f67bab7f1f5b1736ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 17:59:25 +0300 Subject: add restrict into image. --- src/resources/image.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/image.h') diff --git a/src/resources/image.h b/src/resources/image.h index ee7191728..65bc0f338 100644 --- a/src/resources/image.h +++ b/src/resources/image.h @@ -203,11 +203,12 @@ class Image : public Resource // ----------------------- /** SDL Constructor */ - Image(SDL_Surface *const image, const bool hasAlphaChannel, - uint8_t *const alphaChannel = nullptr); + Image(SDL_Surface *restrict const image, const bool hasAlphaChannel, + uint8_t *restrict const alphaChannel = nullptr); #ifdef USE_SDL2 - Image(SDL_Texture *const image, const int width, const int height); + Image(SDL_Texture *restrict const image, + const int width, const int height); #endif SDL_Surface *getByAlpha(const float alpha) A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2