summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-03 00:32:00 +0300
commitfa21c1b65dbe91a1e6ac880db977416162f268df (patch)
tree7fa06ef18a171d62ff892c99e710d4df7aff91b5 /src/resources/sdlimagehelper.h
parent0534847df83047f1ce2605187d45a762ffeae11e (diff)
downloadManaVerse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.gz
ManaVerse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.bz2
ManaVerse-fa21c1b65dbe91a1e6ac880db977416162f268df.tar.xz
ManaVerse-fa21c1b65dbe91a1e6ac880db977416162f268df.zip
Add const to more classes.
Diffstat (limited to 'src/resources/sdlimagehelper.h')
-rw-r--r--src/resources/sdlimagehelper.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h
index cecbf6c93..995b0967e 100644
--- a/src/resources/sdlimagehelper.h
+++ b/src/resources/sdlimagehelper.h
@@ -52,16 +52,17 @@ class SDLImageHelper : public ImageHelper
* @return <code>NULL</code> if an error occurred, a valid pointer
* otherwise.
*/
- Resource *load(SDL_RWops *rw, Dye const &dye);
+ Resource *load(SDL_RWops *const rw, Dye const &dye);
/**
* Loads an image from an SDL surface.
*/
- Image *load(SDL_Surface *);
+ Image *load(SDL_Surface *const tmpImage);
- Image *createTextSurface(SDL_Surface *tmpImage, float alpha);
+ Image *createTextSurface(SDL_Surface *const tmpImage,
+ const float alpha);
- static void SDLSetEnableAlphaCache(bool n)
+ static void SDLSetEnableAlphaCache(const bool n)
{ mEnableAlphaCache = n; }
static bool SDLGetEnableAlphaCache()
@@ -73,7 +74,7 @@ class SDLImageHelper : public ImageHelper
*/
int useOpenGL();
- static SDL_Surface* SDLDuplicateSurface(SDL_Surface* tmpImage);
+ static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage);
protected:
/** SDL_Surface to SDL_Surface Image loader */