diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-12 20:26:59 +0300 |
commit | bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 (patch) | |
tree | 4d631106f76ba8a052dc2ef8b23b8a968040db82 /src/actormanager.h | |
parent | 67638eeec5267977940dce29c5a94ce4d093ed69 (diff) | |
download | plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.gz plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.bz2 plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.tar.xz plus-bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43.zip |
Add noexcept in some files.
Diffstat (limited to 'src/actormanager.h')
-rw-r--r-- | src/actormanager.h | 14 |
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; |