summaryrefslogtreecommitdiff
path: root/src/gui/models
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/models
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadmanaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
manaverse-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/gui/models')
-rw-r--r--src/gui/models/keylistmodel.h8
-rw-r--r--src/gui/models/namesmodel.h4
-rw-r--r--src/gui/models/shopitems.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/models/keylistmodel.h b/src/gui/models/keylistmodel.h
index 101307f30..ee21422f3 100644
--- a/src/gui/models/keylistmodel.h
+++ b/src/gui/models/keylistmodel.h
@@ -67,16 +67,16 @@ class KeyListModel final : public ListModel
void setElementAt(const int i, const std::string &caption)
{ setupActionData[mSelectedData][i].text = caption; }
- void setSize(const int size)
+ void setSize(const int size) noexcept2
{ mSize = size; }
- void setDataNum(const int num)
+ void setDataNum(const int num) noexcept2
{ mDataNum = num; }
- void setSelectedData(const int i)
+ void setSelectedData(const int i) noexcept2
{ mSelectedData = i; }
- int getSelectedData() const A_WARN_UNUSED
+ int getSelectedData() const noexcept2 A_WARN_UNUSED
{ return mSelectedData; }
private:
diff --git a/src/gui/models/namesmodel.h b/src/gui/models/namesmodel.h
index 63af17db6..f0362233d 100644
--- a/src/gui/models/namesmodel.h
+++ b/src/gui/models/namesmodel.h
@@ -40,10 +40,10 @@ class NamesModel notfinal : public ListModel
std::string getElementAt(int i) override final A_WARN_UNUSED;
- StringVect &getNames() A_WARN_UNUSED
+ StringVect &getNames() noexcept2 A_WARN_UNUSED
{ return mNames; }
- size_t size() const A_WARN_UNUSED
+ size_t size() const noexcept2 A_WARN_UNUSED
{ return mNames.size(); }
void clear()
diff --git a/src/gui/models/shopitems.h b/src/gui/models/shopitems.h
index cc72403b0..efc4fca79 100644
--- a/src/gui/models/shopitems.h
+++ b/src/gui/models/shopitems.h
@@ -96,7 +96,7 @@ class ShopItems final : public ListModel
int getNumberOfElements() override final A_WARN_UNUSED
{ return CAST_S32(mShopItems.size()); }
- bool empty() const A_WARN_UNUSED
+ bool empty() const noexcept2 A_WARN_UNUSED
{ return mShopItems.empty(); }
/**