CAudioLookupTable: Make use of explicit constructors
Prevents implicit constructions
This commit is contained in:
parent
d223bac56a
commit
a82f9c197b
|
@ -10,11 +10,11 @@ class CAudioLookupTable : public CResource
|
|||
std::vector<uint16> mDefineIDs;
|
||||
|
||||
public:
|
||||
CAudioLookupTable(CResourceEntry *pEntry = 0)
|
||||
explicit CAudioLookupTable(CResourceEntry *pEntry = nullptr)
|
||||
: CResource(pEntry)
|
||||
{}
|
||||
|
||||
inline uint16 FindSoundDefineID(uint32 SoundID)
|
||||
uint16 FindSoundDefineID(uint32 SoundID)
|
||||
{
|
||||
if (SoundID >= mDefineIDs.size()) return -1;
|
||||
return mDefineIDs[SoundID];
|
||||
|
|
Loading…
Reference in New Issue