diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-21 21:22:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-21 21:22:39 +0300 |
commit | 860728a6949cb06191c3f3fee8df091768e7f154 (patch) | |
tree | cb5cb17b0f1fc157d2163a6a73c3c0e16d8cedad /src/resources/sdlimagehelper.cpp | |
parent | 9decb63d5e8e3b4a080f6095233ba4b470af7bf6 (diff) | |
download | plus-860728a6949cb06191c3f3fee8df091768e7f154.tar.gz plus-860728a6949cb06191c3f3fee8df091768e7f154.tar.bz2 plus-860728a6949cb06191c3f3fee8df091768e7f154.tar.xz plus-860728a6949cb06191c3f3fee8df091768e7f154.zip |
Add support for if constexpr.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 5459062f9..21bc75b0b 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -266,7 +266,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) } else { - if (SDL_ALPHA_OPAQUE != 255) + ifconstexpr (SDL_ALPHA_OPAQUE != 255) { hasAlpha = true; memset(alphaChannel, SDL_ALPHA_OPAQUE, sz); @@ -275,7 +275,7 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) } else { - if (SDL_ALPHA_OPAQUE != 255) + ifconstexpr (SDL_ALPHA_OPAQUE != 255) { hasAlpha = true; memset(alphaChannel, SDL_ALPHA_OPAQUE, sz); |