summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 18:26:16 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 18:26:16 +0300
commit67638eeec5267977940dce29c5a94ce4d093ed69 (patch)
tree2bacbaba1379e57c846929ef31e949fb2bd7f946 /src/resources/imagehelper.h
parent3308da97a29b1170e720b4341456bb39869bed24 (diff)
downloadplus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.gz
plus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.bz2
plus-67638eeec5267977940dce29c5a94ce4d093ed69.tar.xz
plus-67638eeec5267977940dce29c5a94ce4d093ed69.zip
Add constexpr and noexcept into some methods.
Diffstat (limited to 'src/resources/imagehelper.h')
-rw-r--r--src/resources/imagehelper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h
index 2f4276305..4ade89199 100644
--- a/src/resources/imagehelper.h
+++ b/src/resources/imagehelper.h
@@ -91,15 +91,15 @@ class ImageHelper notfinal
static void dumpSurfaceFormat(const SDL_Surface *const image);
- static void setEnableAlpha(const bool n)
+ constexpr static void setEnableAlpha(const bool n) noexcept2
{ mEnableAlpha = n; }
static SDL_Surface *loadPng(SDL_RWops *const rw);
- static void setOpenGlMode(const RenderType useOpenGL)
+ constexpr static void setOpenGlMode(const RenderType useOpenGL) noexcept2
{ mUseOpenGL = useOpenGL; }
- virtual RenderType useOpenGL() const A_WARN_UNUSED
+ virtual RenderType useOpenGL() const noexcept2 A_WARN_UNUSED
{ return mUseOpenGL; }
virtual void postInit()