From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/dyetool/client.h | 2 +- src/dyetool/gui/viewport.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/dyetool') diff --git a/src/dyetool/client.h b/src/dyetool/client.h index bdcdadc09..4ad3aa422 100644 --- a/src/dyetool/client.h +++ b/src/dyetool/client.h @@ -65,7 +65,7 @@ class Client final : public ActionListener void setState(const StateT state) { mState = state; } - StateT getState() const A_WARN_UNUSED + StateT getState() const noexcept2 A_WARN_UNUSED { return mState; } void action(const ActionEvent &event) override final; diff --git a/src/dyetool/gui/viewport.h b/src/dyetool/gui/viewport.h index e5159976b..ab7b9710a 100644 --- a/src/dyetool/gui/viewport.h +++ b/src/dyetool/gui/viewport.h @@ -115,13 +115,13 @@ class Viewport final : public WindowContainer, /** * Returns camera x offset in pixels. */ - int getCameraX() const A_WARN_UNUSED + int getCameraX() const noexcept2 A_WARN_UNUSED { return mPixelViewX; } /** * Returns camera y offset in pixels. */ - int getCameraY() const A_WARN_UNUSED + int getCameraY() const noexcept2 A_WARN_UNUSED { return mPixelViewY; } /** @@ -135,21 +135,21 @@ class Viewport final : public WindowContainer, */ void cleanHoverItems(); - Map *getMap() const A_WARN_UNUSED + Map *getMap() const noexcept2 A_WARN_UNUSED { return mMap; } void moveCamera(const int dx, const int dy); - int getCameraRelativeX() const A_WARN_UNUSED + int getCameraRelativeX() const noexcept2 A_WARN_UNUSED { return mCameraRelativeX; } - int getCameraRelativeY() const A_WARN_UNUSED + int getCameraRelativeY() const noexcept2 A_WARN_UNUSED { return mCameraRelativeY; } - void setCameraRelativeX(const int n) + void setCameraRelativeX(const int n) noexcept2 { mCameraRelativeX = n; } - void setCameraRelativeY(const int n) + void setCameraRelativeY(const int n) noexcept2 { mCameraRelativeY = n; } void videoResized(); -- cgit v1.2.3-70-g09d2