summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-12 20:26:59 +0300
commitbebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch)
tree4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/gui/widgets/widget.h
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadplus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index cbeb68874..f1bf4e63f 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -226,7 +226,7 @@ class Widget notfinal : public Widget2
* setDimension, getDimension
* @since 0.1.0
*/
- int getWidth() const A_WARN_UNUSED
+ int getWidth() const noexcept2 A_WARN_UNUSED
{ return mDimension.width; }
/**
@@ -247,7 +247,7 @@ class Widget notfinal : public Widget2
* setDimension, getDimension
* @since 0.1.0
*/
- int getHeight() const A_WARN_UNUSED
+ int getHeight() const noexcept2 A_WARN_UNUSED
{ return mDimension.height; }
/**
@@ -279,7 +279,7 @@ class Widget notfinal : public Widget2
* @see setX, setY, getY, setPosition, setDimension, getDimension
* @since 0.1.0
*/
- int getX() const A_WARN_UNUSED
+ int getX() const noexcept2 A_WARN_UNUSED
{ return mDimension.x; }
/**
@@ -300,7 +300,7 @@ class Widget notfinal : public Widget2
* @see setY, setX, getX, setPosition, setDimension, getDimension
* @since 0.1.0
*/
- int getY() const A_WARN_UNUSED
+ int getY() const noexcept2 A_WARN_UNUSED
{ return mDimension.y; }
/**
@@ -1023,10 +1023,10 @@ class Widget notfinal : public Widget2
void setRedraw(const bool b) noexcept2
{ mRedraw = b; }
- virtual bool isSelectable() const A_WARN_UNUSED
+ virtual bool isSelectable() const noexcept2 A_WARN_UNUSED
{ return mSelectable; }
- void setSelectable(const bool selectable)
+ void setSelectable(const bool selectable) noexcept2
{ mSelectable = selectable; }
static void distributeWindowResizeEvent();