From bebb71a3dfadb2b94ba46c0c66f0d40d6ef75e43 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Dec 2016 20:26:59 +0300 Subject: Add noexcept in some files. --- src/being/playerrelations.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/being/playerrelations.h') 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) -- cgit v1.2.3-60-g2f50