pcsx2:CDVD: init members in constructor

This commit is contained in:
Gregory Hainaut 2015-09-21 19:05:33 +02:00
parent 8083b2c754
commit 78ed0495ce
3 changed files with 6 additions and 0 deletions

View File

@ -37,8 +37,12 @@ class CsoFileReader : public AsyncFileReader
DeclareNoncopyableObject(CsoFileReader); DeclareNoncopyableObject(CsoFileReader);
public: public:
CsoFileReader(void) : CsoFileReader(void) :
m_frameSize(0),
m_frameShift(0),
m_indexShift(0),
m_readBuffer(0), m_readBuffer(0),
m_zlibBuffer(0), m_zlibBuffer(0),
m_zlibBufferFrame(0),
m_index(0), m_index(0),
m_totalSize(0), m_totalSize(0),
m_src(0), m_src(0),

View File

@ -178,6 +178,7 @@ static wxString iso2indexname(const wxString& isoname) {
} }
GzippedFileReader::GzippedFileReader(void) : GzippedFileReader::GzippedFileReader(void) :
mBytesRead(0),
m_pIndex(0), m_pIndex(0),
m_zstates(0), m_zstates(0),
m_src(0), m_src(0),

View File

@ -105,6 +105,7 @@ IsoDirectory::IsoDirectory(SectorSource& r)
IsoDirectory::IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry) IsoDirectory::IsoDirectory(SectorSource& r, IsoFileDescriptor directoryEntry)
: internalReader(r) : internalReader(r)
{ {
m_fstype = FStype_ISO9660;
Init(directoryEntry); Init(directoryEntry);
} }