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/input/joystick.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/input/joystick.h') diff --git a/src/input/joystick.h b/src/input/joystick.h index e302de53e..5942dbbdc 100644 --- a/src/input/joystick.h +++ b/src/input/joystick.h @@ -93,24 +93,24 @@ class Joystick final void finishCalibration(); - bool isCalibrating() const A_WARN_UNUSED + bool isCalibrating() const noexcept2 A_WARN_UNUSED { return mCalibrating; } bool buttonPressed(const unsigned char no) const A_WARN_UNUSED; - bool isUp() const A_WARN_UNUSED + bool isUp() const noexcept2 A_WARN_UNUSED { return mEnabled && (mDirection & UP); } - bool isDown() const A_WARN_UNUSED + bool isDown() const noexcept2 A_WARN_UNUSED { return mEnabled && (mDirection & DOWN); } - bool isLeft() const A_WARN_UNUSED + bool isLeft() const noexcept2 A_WARN_UNUSED { return mEnabled && (mDirection & LEFT); } - bool isRight() const A_WARN_UNUSED + bool isRight() const noexcept2 A_WARN_UNUSED { return mEnabled && (mDirection & RIGHT); } - int getNumber() const A_WARN_UNUSED + int getNumber() const noexcept2 A_WARN_UNUSED { return mNumber; } void setUseInactive(const bool b) -- cgit v1.2.3-70-g09d2