summaryrefslogtreecommitdiff
path: root/src/party.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-01-26 16:07:54 +0100
commit5afe88df2538274859a162ffd63ed52118e80c19 (patch)
treeb610dfd58dc748fd63f49565b2a43eea2316714f /src/party.h
parent73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff)
downloadmana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2
mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz
mana-5afe88df2538274859a162ffd63ed52118e80c19.zip
Apply C++11 fixits
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
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 90e9d784..ac421fd9 100644
--- a/src/party.h
+++ b/src/party.h
@@ -128,11 +128,11 @@ public:
* Get size of members list.
* @return Returns the number of members in the party.
*/
- int getNumberOfElements() {
+ int getNumberOfElements() override {
return mMembers.size();
}
- Avatar *getAvatarAt(int i);
+ Avatar *getAvatarAt(int i) override;
/**
* Get whether user can invite users to this party.
@@ -156,7 +156,7 @@ public:
static Party *getParty(int id);
private:
- typedef std::map<int, Party*> PartyMap;
+ using PartyMap = std::map<int, Party *>;
static PartyMap parties;
/**
@@ -164,9 +164,9 @@ private:
*/
Party(short id);
- ~Party();
+ ~Party() override;
- typedef std::vector<PartyMember*> MemberList;
+ using MemberList = std::vector<PartyMember *>;
MemberList mMembers;
std::string mName;
short mId;