summaryrefslogtreecommitdiff
path: root/src/being/playerrelations.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/being/playerrelations.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/being/playerrelations.h')
-rw-r--r--src/being/playerrelations.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/playerrelations.h b/src/being/playerrelations.h
index 2c09cd01c..31a007637 100644
--- a/src/being/playerrelations.h
+++ b/src/being/playerrelations.h
@@ -127,6 +127,7 @@ class PlayerRelationsManager final
* \return A player ignore strategy, or nullptr
*/
const PlayerIgnoreStrategy *getPlayerIgnoreStrategy() const
+ noexcept2
A_WARN_UNUSED
{ return mIgnoreStrategy; }
@@ -134,6 +135,7 @@ class PlayerRelationsManager final
* Sets the strategy to call when ignoring players.
*/
void setPlayerIgnoreStrategy(PlayerIgnoreStrategy *const strategy)
+ noexcept2
{ mIgnoreStrategy = strategy; }
/**
@@ -163,7 +165,7 @@ class PlayerRelationsManager final
/**
* Do we persist our `ignore' setup?
*/
- bool getPersistIgnores() const
+ bool getPersistIgnores() const noexcept2 A_WARN_UNUSED
{ return mPersistIgnores; }
void ignoreTrade(const std::string &name) const;
@@ -177,7 +179,7 @@ class PlayerRelationsManager final
*
* @param value Whether to persist ignores
*/
- void setPersistIgnores(const bool value)
+ void setPersistIgnores(const bool value) noexcept2
{ mPersistIgnores = value; }
void addListener(PlayerRelationsListener *const listener)