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/guild.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/guild.h') diff --git a/src/guild.h b/src/guild.h index 7e5b63a40..31c0a66cc 100644 --- a/src/guild.h +++ b/src/guild.h @@ -39,10 +39,10 @@ class GuildMember final : public Avatar public: A_DELETE_COPY(GuildMember) - const Guild *getGuild() const A_WARN_UNUSED + const Guild *getGuild() const noexcept2 A_WARN_UNUSED { return mGuild; } - int getPos() const A_WARN_UNUSED + int getPos() const noexcept2 A_WARN_UNUSED { return mPos; } void setPos(const int pos) @@ -116,14 +116,14 @@ class Guild final : public AvatarListModel * Get the name of the guild. * @return returns name of the guild */ - const std::string &getName() const A_WARN_UNUSED + const std::string &getName() const noexcept2 A_WARN_UNUSED { return mName; } /** * Get the id of the guild. * @return Returns the id of the guild */ - int16_t getId() const A_WARN_UNUSED + int16_t getId() const noexcept2 A_WARN_UNUSED { return mId; } /** @@ -159,7 +159,7 @@ class Guild final : public AvatarListModel * Get whether user can invite users to this guild. * @return Returns true if user can invite users */ - bool getInviteRights() const A_WARN_UNUSED + bool getInviteRights() const noexcept2 A_WARN_UNUSED { return mCanInviteUsers; } void setRights(const int16_t rights); @@ -180,13 +180,13 @@ class Guild final : public AvatarListModel static Guild *getGuild(const int16_t id) A_WARN_UNUSED; - const PositionsMap &getPositions() const A_WARN_UNUSED + const PositionsMap &getPositions() const noexcept2 A_WARN_UNUSED { return mPositions; } void setEmblemId(const int id) { mEmblemId = id; } - int getEmblemId() const A_WARN_UNUSED + int getEmblemId() const noexcept2 A_WARN_UNUSED { return mEmblemId; } static void clearGuilds(); @@ -194,7 +194,7 @@ class Guild final : public AvatarListModel void setServerGuild(const bool b) { mServerGuild = b; } - bool getServerGuild() const A_WARN_UNUSED + bool getServerGuild() const noexcept2 A_WARN_UNUSED { return mServerGuild; } typedef std::vector MemberList; -- cgit v1.2.3-60-g2f50