diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-06 20:25:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-06 20:25:51 +0300 |
commit | b98795bfc07a3bad493f0abac35f0b607447f582 (patch) | |
tree | 45424335744a256e89dac200f8d6e2fd1900963e /src/render/renderers.cpp | |
parent | e6f2965e420da97d989ea4650e2dfc66a0decb3a (diff) | |
download | plus-b98795bfc07a3bad493f0abac35f0b607447f582.tar.gz plus-b98795bfc07a3bad493f0abac35f0b607447f582.tar.bz2 plus-b98795bfc07a3bad493f0abac35f0b607447f582.tar.xz plus-b98795bfc07a3bad493f0abac35f0b607447f582.zip |
Add noexcept into other renderers.
Diffstat (limited to 'src/render/renderers.cpp')
-rw-r--r-- | src/render/renderers.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/renderers.cpp b/src/render/renderers.cpp index 60aeda1a1..6d385d294 100644 --- a/src/render/renderers.cpp +++ b/src/render/renderers.cpp @@ -22,7 +22,9 @@ #include "debug.h" -static RenderType getDefault() +static RenderType getDefault() noexcept A_CONST; + +static RenderType getDefault() noexcept { #ifdef USE_OPENGL #ifdef ANDROID @@ -35,7 +37,7 @@ static RenderType getDefault() #endif } -RenderType intToRenderType(const int mode) +RenderType intToRenderType(const int mode) noexcept { if (mode < 0 || mode >= RENDER_LAST) return getDefault(); |