uninitialized variables-util

This commit is contained in:
AzaezelX 2020-05-11 15:46:44 -05:00
parent 9e1c22204f
commit 43259e29c1
2 changed files with 4 additions and 2 deletions

View file

@ -118,9 +118,9 @@ class CSVSamplerBackend : public ISamplerBackend
const char* mString;
} mValue;
SampleRecord() {}
SampleRecord() : mKey(0), mSet(false), mType(TypeBool) { mValue.mBool = false; }
SampleRecord( U32 key )
: mKey( key ), mSet( false ) {}
: mKey( key ), mSet( false ), mType(TypeBool) { mValue.mBool = false; }
void set( bool value )
{