CAudioLookupTable: Make use of explicit constructors
Prevents implicit constructions
@@ -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];
