diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
commit | bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch) | |
tree | 4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/input/joystick.h | |
parent | 67638eeec5267977940dce29c5a94ce4d093ed69 (diff) | |
download | plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2 plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip |
Add noexcept in some files.
Diffstat (limited to 'src/input/joystick.h')
-rw-r--r-- | src/input/joystick.h | 12 |
1 files changed, 6 insertions, 6 deletions
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) |