pcsx2: initialize members in constructor of objects

This commit is contained in:
Gregory Hainaut 2015-09-11 12:21:55 +02:00
parent 5fb8c7e65c
commit 23591deb81
4 changed files with 10 additions and 3 deletions

View File

@ -45,7 +45,12 @@ bool BlockdumpFileReader::DetectBlockdump(AsyncFileReader* reader)
return isbd;
}
BlockdumpFileReader::BlockdumpFileReader(void)
BlockdumpFileReader::BlockdumpFileReader(void) :
m_file(NULL),
m_blocks(0),
m_blockofs(0),
m_dtablesize(0),
m_lresult(0)
{
}

View File

@ -198,6 +198,8 @@ public:
protected:
BaseCompressThread()
{
m_gzfp = NULL;
m_src_list = NULL;
m_PendingSaveFlag = false;
}

View File

@ -102,7 +102,6 @@ private:
CpuTabPage* currentCpu;
wxBoxSizer* topSizer;
wxStatusBar* statusBar;
wxButton* breakRunButton;
wxButton* stepIntoButton;
wxButton* stepOverButton;

View File

@ -208,6 +208,7 @@ namespace vtlb_private
MapData()
{
vmap = NULL;
ppmap = NULL;
}
};