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; 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: protected:
BaseCompressThread() BaseCompressThread()
{ {
m_gzfp = NULL;
m_src_list = NULL;
m_PendingSaveFlag = false; m_PendingSaveFlag = false;
} }

View File

@ -102,10 +102,9 @@ private:
CpuTabPage* currentCpu; CpuTabPage* currentCpu;
wxBoxSizer* topSizer; wxBoxSizer* topSizer;
wxStatusBar* statusBar;
wxButton* breakRunButton; wxButton* breakRunButton;
wxButton* stepIntoButton; wxButton* stepIntoButton;
wxButton* stepOverButton; wxButton* stepOverButton;
wxButton* stepOutButton; wxButton* stepOutButton;
wxButton* breakpointButton; wxButton* breakpointButton;
}; };

View File

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