summaryrefslogtreecommitdiff
path: root/src/gui/models
diff options
context:
space:
mode:
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(); }
/**