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/progressbar.h | |
parent | 67638eeec5267977940dce29c5a94ce4d093ed69 (diff) | |
download | mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2 mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip |
Add noexcept in some files.
Diffstat (limited to 'src/gui/widgets/progressbar.h')
-rw-r--r-- | src/gui/widgets/progressbar.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h index 289633f3d..92814a3c7 100644 --- a/src/gui/widgets/progressbar.h +++ b/src/gui/widgets/progressbar.h @@ -85,7 +85,7 @@ class ProgressBar final : public Widget, /** * Returns the current progress. */ - float getProgress() const A_WARN_UNUSED + float getProgress() const noexcept2 A_WARN_UNUSED { return mProgress; } /** @@ -104,7 +104,7 @@ class ProgressBar final : public Widget, /** * Returns the color of the progress bar. */ - const Color &getBackgroundColor() const A_WARN_UNUSED + const Color &getBackgroundColor() const noexcept2 A_WARN_UNUSED { return mBackgroundColor; } /** @@ -115,19 +115,19 @@ class ProgressBar final : public Widget, /** * Returns the text shown on the progress bar. */ - const std::string &text() const A_WARN_UNUSED + const std::string &text() const noexcept2 A_WARN_UNUSED { return mText; } /** * Set whether the progress is moved smoothly. */ - void setSmoothProgress(bool smoothProgress) + void setSmoothProgress(bool smoothProgress) noexcept2 { mSmoothProgress = smoothProgress; } /** * Set whether the color changing is made smoothly. */ - void setSmoothColorChange(bool smoothColorChange) + void setSmoothColorChange(bool smoothColorChange) noexcept2 { mSmoothColorChange = smoothColorChange; } void widgetResized(const Event &event) override final; @@ -136,7 +136,7 @@ class ProgressBar final : public Widget, void widgetHidden(const Event &event) override final; - void setPadding(unsigned int padding) + void setPadding(unsigned int padding) noexcept2 { mPadding = padding; } private: |