From c70be70cab3615cb36cc5f244671cf5d39f1fda8 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 9 Feb 2024 09:47:21 +0100 Subject: General code cleanups * Removing unused includes * Use member initialization * Use range-based for loops * Use nullptr * Removed no longer used aliases * Use override * Don't use else after return * Use '= delete' to remove implicit members * Use std::string::empty instead of comparing to "" --- src/party.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/party.h') diff --git a/src/party.h b/src/party.h index ac421fd9..d96500ca 100644 --- a/src/party.h +++ b/src/party.h @@ -53,7 +53,7 @@ protected: int mId; Party *mParty; - bool mLeader; + bool mLeader = false; }; class Party : public AvatarListModel @@ -166,11 +166,10 @@ private: ~Party() override; - using MemberList = std::vector; - MemberList mMembers; + std::vector mMembers; std::string mName; short mId; - bool mCanInviteUsers; + bool mCanInviteUsers = false; }; #endif // PARTY_H -- cgit v1.2.3-70-g09d2