summaryrefslogtreecommitdiff
path: root/src/actormanager.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/actormanager.h
parent67638eeec5267977940dce29c5a94ce4d093ed69 (diff)
downloadmv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz
mv-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip
Add noexcept in some files.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r--src/actormanager.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/actormanager.h b/src/actormanager.h
index 8d4170275..bb00f1e5b 100644
--- a/src/actormanager.h
+++ b/src/actormanager.h
@@ -318,22 +318,22 @@ class ActorManager final: public ConfigListener
void setAttackMobs(const std::list<std::string> &mobs)
{ mAttackMobs = mobs; }
- int getPriorityAttackMobsSize() const A_WARN_UNUSED
+ int getPriorityAttackMobsSize() const noexcept2 A_WARN_UNUSED
{ return CAST_S32(mPriorityAttackMobs.size()); }
- int getAttackMobsSize() const A_WARN_UNUSED
+ int getAttackMobsSize() const noexcept2 A_WARN_UNUSED
{ return CAST_S32(mAttackMobs.size()); }
- int getPickupItemsSize() const A_WARN_UNUSED
+ int getPickupItemsSize() const noexcept2 A_WARN_UNUSED
{ return CAST_S32(mPickupItems.size()); }
#define defList(list1, mob) \
bool isIn##list1##List(const std::string &name) const A_WARN_UNUSED\
{ return m##list1##mob##Set.find(name) != m##list1##mob##Set.end(); }\
void rebuild##list1##mob();\
- std::set<std::string> get##list1##mob##Set() const A_WARN_UNUSED\
+ std::set<std::string> get##list1##mob##Set() const noexcept2 A_WARN_UNUSED\
{ return m##list1##mob##Set; }\
- std::list<std::string> get##list1##mob() const A_WARN_UNUSED\
+ std::list<std::string> get##list1##mob() const noexcept2 A_WARN_UNUSED\
{ return m##list1##mob; }
defList(Attack, Mobs)
@@ -342,10 +342,10 @@ class ActorManager final: public ConfigListener
defList(Pickup, Items)
defList(IgnorePickup, Items)
- const StringIntMap &getAttackMobsMap() const A_WARN_UNUSED
+ const StringIntMap &getAttackMobsMap() const noexcept2 A_WARN_UNUSED
{ return mAttackMobsMap; }
- const StringIntMap &getPriorityAttackMobsMap() const A_WARN_UNUSED
+ const StringIntMap &getPriorityAttackMobsMap() const noexcept2 A_WARN_UNUSED
{ return mPriorityAttackMobsMap; }
int getAttackMobIndex(const std::string &name) const A_WARN_UNUSED;