From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/gui/widgets/widget.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/widget.h') 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(); -- cgit v1.2.3-60-g2f50