From 0534847df83047f1ce2605187d45a762ffeae11e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 21:25:21 +0300 Subject: Add const to more classes. --- src/resources/imagehelper.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/resources/imagehelper.h') diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h index 7e2bee20d..27132b7d9 100644 --- a/src/resources/imagehelper.h +++ b/src/resources/imagehelper.h @@ -54,7 +54,7 @@ class ImageHelper * @return NULL if an error occurred, a valid pointer * otherwise. */ - Resource *load(SDL_RWops *rw); + Resource *load(SDL_RWops *const rw); #ifdef __GNUC__ virtual Resource *load(SDL_RWops *rw, Dye const &dye) = 0; @@ -72,19 +72,19 @@ class ImageHelper virtual Image *load(SDL_Surface *) { return nullptr; } - virtual Image *createTextSurface(SDL_Surface *tmpImage, - float alpha) + virtual Image *createTextSurface(SDL_Surface *const tmpImage, + const float alpha) { return nullptr; } virtual int useOpenGL() { return 0; } #endif - SDL_Surface *convertTo32Bit(SDL_Surface* tmpImage); + static SDL_Surface *convertTo32Bit(SDL_Surface *const tmpImage); - void dumpSurfaceFormat(SDL_Surface *image); + void dumpSurfaceFormat(const SDL_Surface *const image) const; - static void setEnableAlpha(bool n) + static void setEnableAlpha(const bool n) { mEnableAlpha = n; } protected: -- cgit v1.2.3-70-g09d2