summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 20:57:45 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:22 +0300
commit7db67f02a28449006a1fb872f82612fd9d89bb61 (patch)
tree1f28b7774e13fd61440a454e69b63f6e2abbef85 /src/resources
parent25eafb29d073b78b167c1fd17c1a8f83b6769f7d (diff)
downloadplus-7db67f02a28449006a1fb872f82612fd9d89bb61.tar.gz
plus-7db67f02a28449006a1fb872f82612fd9d89bb61.tar.bz2
plus-7db67f02a28449006a1fb872f82612fd9d89bb61.tar.xz
plus-7db67f02a28449006a1fb872f82612fd9d89bb61.zip
fix initialisation in sdlimagehelper.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/sdlimagehelper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index 84f36ec79..fa63517fc 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -117,7 +117,6 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage,
if (!tmpImage)
return nullptr;
- Image *img;
bool hasAlpha = false;
const int sz = tmpImage->w * tmpImage->h;
@@ -173,7 +172,7 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage,
return nullptr;
}
- img = new Image(image, hasAlpha, alphaChannel);
+ Image *const img = new Image(image, hasAlpha, alphaChannel);
img->mAlpha = alpha;
return img;
}