summaryrefslogtreecommitdiff
path: root/src/party.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/party.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/party.h')
-rw-r--r--src/party.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/party.h b/src/party.h
index 51cfc2f3b..9f2462ac8 100644
--- a/src/party.h
+++ b/src/party.h
@@ -37,10 +37,10 @@ class PartyMember final : public Avatar
public:
A_DELETE_COPY(PartyMember)
- const Party *getParty() const A_WARN_UNUSED
+ const Party *getParty() const noexcept2 A_WARN_UNUSED
{ return mParty; }
- bool getLeader() const A_WARN_UNUSED
+ bool getLeader() const noexcept2 A_WARN_UNUSED
{ return mLeader; }
void setLeader(const bool leader)
@@ -92,14 +92,14 @@ class Party final : public AvatarListModel
* Get the name of the party.
* @return returns name of the party
*/
- const std::string &getName() const A_WARN_UNUSED
+ const std::string &getName() const noexcept2 A_WARN_UNUSED
{ return mName; }
/**
* Get the id of the party.
* @return Returns the id of the party
*/
- int16_t getId() const A_WARN_UNUSED
+ int16_t getId() const noexcept2 A_WARN_UNUSED
{ return mId; }
/**
@@ -135,7 +135,7 @@ class Party final : public AvatarListModel
* Get whether user can invite users to this party.
* @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);