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/gui/widgets/button.h | |
parent | 67638eeec5267977940dce29c5a94ce4d093ed69 (diff) | |
download | manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2 manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz manaplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip |
Add noexcept in some files.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index 2e20be616..aaeedd553 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -167,16 +167,16 @@ class Button final : public Widget, void setDescription(const std::string &text) { mDescription = text; } - std::string getDescription() const A_WARN_UNUSED + std::string getDescription() const noexcept2 A_WARN_UNUSED { return mDescription; } - int getClickCount() const A_WARN_UNUSED + int getClickCount() const noexcept2 A_WARN_UNUSED { return mClickCount; } void setTag(int tag) { mTag = tag; } - int getTag() const A_WARN_UNUSED + int getTag() const noexcept2 A_WARN_UNUSED { return mTag; } void setStick(bool b) @@ -219,7 +219,7 @@ class Button final : public Widget, * * @return The caption of the button. */ - const std::string& getCaption() const + const std::string& getCaption() const noexcept2 A_WARN_UNUSED { return mCaption; } /** @@ -229,7 +229,7 @@ class Button final : public Widget, * @param alignment The alignment of the caption. * @see getAlignment, Graphics */ - void setAlignment(Graphics::Alignment alignment) + void setAlignment(Graphics::Alignment alignment) noexcept2 { mAlignment = alignment; } /** @@ -238,7 +238,7 @@ class Button final : public Widget, * @return The alignment of the caption. * @see setAlignment, Graphics */ - Graphics::Alignment getAlignment() const + Graphics::Alignment getAlignment() const noexcept2 A_WARN_UNUSED { return mAlignment; } void focusLost(const Event& event) override final; @@ -255,10 +255,10 @@ class Button final : public Widget, void setWindow(Widget *const widget) override final; - void setImageWidth(const int width) + void setImageWidth(const int width) noexcept2 { mImageWidth = width; } - void setImageHeight(const int height) + void setImageHeight(const int height) noexcept2 { mImageHeight = height; } enum |