CAudioGroup: Make use of in-class initializers

This commit is contained in:
Lioncash 2020-06-11 13:23:50 -04:00
parent 7ce0e14e29
commit d223bac56a
1 changed files with 6 additions and 7 deletions

View File

@ -10,20 +10,19 @@ class CAudioGroup : public CResource
friend class CAudioGroupLoader;
TString mGroupName;
uint32 mGroupID;
uint32 mGroupID = UINT32_MAX;
std::vector<uint16> mDefineIDs;
public:
CAudioGroup(CResourceEntry *pEntry = 0)
explicit CAudioGroup(CResourceEntry *pEntry = nullptr)
: CResource(pEntry)
, mGroupID(-1)
{}
// Accessors
inline TString GroupName() const { return mGroupName; }
inline uint32 GroupID() const { return mGroupID; }
inline uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
inline uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
TString GroupName() const { return mGroupName; }
uint32 GroupID() const { return mGroupID; }
uint32 NumSoundDefineIDs() const { return mDefineIDs.size(); }
uint16 SoundDefineIDByIndex(uint32 Index) const { return mDefineIDs[Index]; }
};
#endif // CAUDIOGROUP