From 67638eeec5267977940dce29c5a94ce4d093ed69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 18:26:16 +0300 Subject: Add constexpr and noexcept into some methods. --- src/resources/sdlimagehelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/sdlimagehelper.h') 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) -- cgit v1.2.3-70-g09d2