From 5afe88df2538274859a162ffd63ed52118e80c19 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 26 Jan 2024 16:07:54 +0100 Subject: Apply C++11 fixits modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using --- src/guild.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/guild.h') diff --git a/src/guild.h b/src/guild.h index 75c93d18..deee8e7b 100644 --- a/src/guild.h +++ b/src/guild.h @@ -129,11 +129,11 @@ public: * Get size of members list. * @return Returns the number of members in the guild. */ - 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 guild. @@ -157,7 +157,7 @@ public: static Guild *getGuild(int id); private: - typedef std::map GuildMap; + using GuildMap = std::map; static GuildMap guilds; /** @@ -165,7 +165,7 @@ private: */ Guild(short id); - typedef std::vector MemberList; + using MemberList = std::vector; MemberList mMembers; std::string mName; short mId; -- cgit v1.2.3-70-g09d2