From b98795bfc07a3bad493f0abac35f0b607447f582 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jan 2016 20:25:51 +0300 Subject: Add noexcept into other renderers. --- src/render/renderers.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/render/renderers.cpp') 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(); -- cgit v1.2.3-70-g09d2