diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-08 00:49:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-08 00:49:41 +0300 |
commit | ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9 (patch) | |
tree | 51a99a43eba0b09ca9e5f554b3676d0308685797 /src/resources/image.cpp | |
parent | 538261b13990ee02bbc62d9704233885b15cee04 (diff) | |
download | manaplus-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.gz manaplus-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.bz2 manaplus-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.tar.xz manaplus-ff5e17ff14a78af31d9d23cd1dfdb5404f9a8fa9.zip |
Fix code style with new tool.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6f9042029..0ac11f114 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -250,14 +250,14 @@ Image *Image::createTextSurface(SDL_Surface *tmpImage, float alpha) // We also delete the alpha channel since // it's not used. - delete[] alphaChannel; + delete [] alphaChannel; alphaChannel = nullptr; } if (!image) { logger->log1("Error: Image convert failed."); - delete[] alphaChannel; + delete [] alphaChannel; return nullptr; } @@ -295,7 +295,7 @@ void Image::unload() SDL_FreeSurface(mSDLSurface); mSDLSurface = nullptr; - delete[] mAlphaChannel; + delete [] mAlphaChannel; mAlphaChannel = nullptr; } @@ -689,14 +689,14 @@ Image *Image::_SDLload(SDL_Surface *tmpImage) // We also delete the alpha channel since // it's not used. - delete[] alphaChannel; + delete [] alphaChannel; alphaChannel = nullptr; } if (!image) { logger->log1("Error: Image convert failed."); - delete[] alphaChannel; + delete [] alphaChannel; return nullptr; } |