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/skin.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/skin.h')
-rw-r--r-- | src/gui/skin.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/skin.h b/src/gui/skin.h index bcfaf77fc..a0b33fe53 100644 --- a/src/gui/skin.h +++ b/src/gui/skin.h @@ -52,31 +52,31 @@ class Skin final * name if a dialog for skin selection for a specific window type is * done. */ - const std::string &getName() const A_WARN_UNUSED + const std::string &getName() const noexcept2 A_WARN_UNUSED { return mName; } /** * Returns the skin's xml file path. */ - const std::string &getFilePath() const A_WARN_UNUSED + const std::string &getFilePath() const noexcept2 A_WARN_UNUSED { return mFilePath; } /** * Returns the background skin. */ - const ImageRect &getBorder() const A_WARN_UNUSED + const ImageRect &getBorder() const noexcept2 A_WARN_UNUSED { return *mBorder; } /** * Returns the image used by a close button for this skin. */ - const Image *getCloseImage(const bool state) const A_WARN_UNUSED + const Image *getCloseImage(const bool state) const noexcept2 A_WARN_UNUSED { return state ? mCloseImageHighlighted : mCloseImage; } /** * Returns the image used by a sticky button for this skin. */ - const Image *getStickyImage(const bool state) const A_WARN_UNUSED + const Image *getStickyImage(const bool state) const noexcept2 A_WARN_UNUSED { return state ? mStickyImageDown : mStickyImageUp; } /** @@ -94,10 +94,10 @@ class Skin final */ void updateAlpha(const float minimumOpacityAllowed = 0.0F); - int getPadding() const A_WARN_UNUSED + int getPadding() const noexcept2 A_WARN_UNUSED { return mPadding; } - int getTitlePadding() const A_WARN_UNUSED + int getTitlePadding() const noexcept2 A_WARN_UNUSED { return mTitlePadding; } int getOption(const std::string &name) const A_WARN_UNUSED |