summaryrefslogtreecommitdiff
path: root/src/render/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 21:18:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 21:18:24 +0300
commit9ff808fb20962884d56147d46c8e4de915a0735d (patch)
treeb09025e75c2e57a48e5be971953edbc14b466846 /src/render/graphics.h
parentaaa274245a584c633dcfdb5444bbc1dc21c0c28f (diff)
downloadmanaplus-9ff808fb20962884d56147d46c8e4de915a0735d.tar.gz
manaplus-9ff808fb20962884d56147d46c8e4de915a0735d.tar.bz2
manaplus-9ff808fb20962884d56147d46c8e4de915a0735d.tar.xz
manaplus-9ff808fb20962884d56147d46c8e4de915a0735d.zip
Disable noexcept for clang and old gcc versions.
Diffstat (limited to 'src/render/graphics.h')
-rw-r--r--src/render/graphics.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/render/graphics.h b/src/render/graphics.h
index 8334d315d..dda3363e6 100644
--- a/src/render/graphics.h
+++ b/src/render/graphics.h
@@ -135,7 +135,7 @@ class Graphics notfinal
mRect.h = static_cast<RectSize>(height);
}
- SDL_Window *getWindow() const restrict2 noexcept
+ SDL_Window *getWindow() const restrict2 noexcept2
{ return mWindow; }
/**
@@ -144,7 +144,7 @@ class Graphics notfinal
*/
void setSync(const bool sync) restrict2;
- bool getSync() const restrict2 noexcept A_WARN_UNUSED
+ bool getSync() const restrict2 noexcept2 A_WARN_UNUSED
{ return mSync; }
/**
@@ -274,37 +274,37 @@ class Graphics notfinal
ClipRect &getTopClip() const restrict2 A_WARN_UNUSED
{ return mClipStack.top(); }
- void setRedraw(const bool n) restrict2 noexcept
+ void setRedraw(const bool n) restrict2 noexcept2
{ mRedraw = n; }
- bool getRedraw() const restrict2 noexcept A_WARN_UNUSED
+ bool getRedraw() const restrict2 noexcept2 A_WARN_UNUSED
{ return mRedraw; }
- void setSecure(const bool n) restrict2 noexcept
+ void setSecure(const bool n) restrict2 noexcept2
{ mSecure = n; }
- bool getSecure() const restrict2 noexcept A_WARN_UNUSED
+ bool getSecure() const restrict2 noexcept2 A_WARN_UNUSED
{ return mSecure; }
- int getBpp() const restrict2 noexcept A_WARN_UNUSED
+ int getBpp() const restrict2 noexcept2 A_WARN_UNUSED
{ return mBpp; }
- bool getFullScreen() const restrict2 noexcept A_WARN_UNUSED
+ bool getFullScreen() const restrict2 noexcept2 A_WARN_UNUSED
{ return mFullscreen; }
- bool getHWAccel() const restrict2 noexcept A_WARN_UNUSED
+ bool getHWAccel() const restrict2 noexcept2 A_WARN_UNUSED
{ return mHWAccel; }
- bool getDoubleBuffer() const restrict2 noexcept A_WARN_UNUSED
+ bool getDoubleBuffer() const restrict2 noexcept2 A_WARN_UNUSED
{ return mDoubleBuffer; }
- RenderType getOpenGL() const restrict2 noexcept A_WARN_UNUSED
+ RenderType getOpenGL() const restrict2 noexcept2 A_WARN_UNUSED
{ return mOpenGL; }
- void setNoFrame(const bool n) restrict2 noexcept
+ void setNoFrame(const bool n) restrict2 noexcept2
{ mNoFrame = n; }
- const std::string &getName() const restrict2 noexcept A_WARN_UNUSED
+ const std::string &getName() const restrict2 noexcept2 A_WARN_UNUSED
{ return mName; }
virtual void initArrays(const int vertCount A_UNUSED) restrict2
@@ -316,7 +316,7 @@ class Graphics notfinal
mAlpha = (color.a != 255);
}
- const Color &getColor() const restrict2 noexcept
+ const Color &getColor() const restrict2 noexcept2
{ return mColor; }
#ifdef DEBUG_DRAW_CALLS
@@ -356,10 +356,10 @@ class Graphics notfinal
virtual void completeCache() restrict2 = 0;
- int getScale() const restrict2 noexcept
+ int getScale() const restrict2 noexcept2
{ return mScale; }
- virtual bool isAllowScale() const restrict2 noexcept
+ virtual bool isAllowScale() const restrict2 noexcept2
{ return false; }
void setScale(int scale) restrict2;