diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-12 18:26:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-12 18:26:16 +0300 |
commit | 67638eeec5267977940dce29c5a94ce4d093ed69 (patch) | |
tree | 2bacbaba1379e57c846929ef31e949fb2bd7f946 /src/resources/sdlimagehelper.h | |
parent | 3308da97a29b1170e720b4341456bb39869bed24 (diff) | |
download | manaplus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.gz manaplus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.bz2 manaplus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.xz manaplus-67638eeec5267977940dce29c5a94ce4d093ed69.zip |
Add constexpr and noexcept into some methods.
Diffstat (limited to 'src/resources/sdlimagehelper.h')
-rw-r--r-- | src/resources/sdlimagehelper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h index 347a8b585..57fd33d68 100644 --- a/src/resources/sdlimagehelper.h +++ b/src/resources/sdlimagehelper.h @@ -81,10 +81,10 @@ class SDLImageHelper final : public ImageHelper SDL_Surface *const surface) const override final; - static void SDLSetEnableAlphaCache(const bool n) + constexpr static void SDLSetEnableAlphaCache(const bool n) noexcept2 { mEnableAlphaCache = n; } - static bool SDLGetEnableAlphaCache() A_WARN_UNUSED + static bool SDLGetEnableAlphaCache() noexcept2 A_WARN_UNUSED { return mEnableAlphaCache; } static SDL_Surface* SDLDuplicateSurface(SDL_Surface *const tmpImage) |