summaryrefslogtreecommitdiff
path: root/src/gui/widgets/listbox.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/listbox.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/listbox.h')
-rw-r--r--src/gui/widgets/listbox.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/listbox.h b/src/gui/widgets/listbox.h
index 97ee63ba7..423015e92 100644
--- a/src/gui/widgets/listbox.h
+++ b/src/gui/widgets/listbox.h
@@ -137,7 +137,7 @@ class ListBox notfinal : public Widget,
void refocus();
- void setDistributeMousePressed(const bool b)
+ void setDistributeMousePressed(const bool b) noexcept2
{ mDistributeMousePressed = b; }
virtual void adjustSize();
@@ -146,16 +146,16 @@ class ListBox notfinal : public Widget,
virtual int getSelectionByMouse(const int y) const;
- void setCenter(const bool b)
+ void setCenter(const bool b) noexcept2
{ mCenterText = b; }
- int getPressedIndex() const
+ int getPressedIndex() const noexcept2 A_WARN_UNUSED
{ return mPressedIndex; }
virtual unsigned int getRowHeight() const A_WARN_UNUSED
{ return mRowHeight; }
- void setRowHeight(unsigned int n)
+ void setRowHeight(unsigned int n) noexcept2
{ mRowHeight = n; }
/**
@@ -164,7 +164,7 @@ class ListBox notfinal : public Widget,
* @return the selected item as an index in the list model.
* @see setSelected
*/
- int getSelected() const
+ int getSelected() const noexcept2 A_WARN_UNUSED
{ return mSelected; }
/**
@@ -190,7 +190,7 @@ class ListBox notfinal : public Widget,
* @return the list model used.
* @see setListModel
*/
- ListModel *getListModel() const
+ ListModel *getListModel() const noexcept2 A_WARN_UNUSED
{ return mListModel; }
/**
@@ -205,7 +205,7 @@ class ListBox notfinal : public Widget,
* @return true if wrapping is enabled, fasle otherwise.
* @see setWrappingEnabled
*/
- bool isWrappingEnabled() const
+ bool isWrappingEnabled() const noexcept2 A_WARN_UNUSED
{ return mWrappingEnabled; }
/**
@@ -219,7 +219,7 @@ class ListBox notfinal : public Widget,
*
* @see isWrappingEnabled
*/
- void setWrappingEnabled(const bool wrappingEnabled)
+ void setWrappingEnabled(const bool wrappingEnabled) noexcept2
{ mWrappingEnabled = wrappingEnabled; }
/**