From 7db67f02a28449006a1fb872f82612fd9d89bb61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 20:57:45 +0300 Subject: fix initialisation in sdlimagehelper. --- src/resources/sdlimagehelper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2