BreakPoints: In-class initialize TMemCheck members

Same thing, less code.
This commit is contained in:
Lioncash 2017-01-11 07:53:46 -05:00
parent a3bef102b7
commit 588374349f
1 changed files with 8 additions and 15 deletions

View File

@ -20,25 +20,18 @@ struct TBreakPoint
struct TMemCheck
{
TMemCheck()
{
numHits = 0;
StartAddress = EndAddress = 0;
bRange = OnRead = OnWrite = Log = Break = false;
}
u32 StartAddress = 0;
u32 EndAddress = 0;
u32 StartAddress;
u32 EndAddress;
bool bRange = false;
bool bRange;
bool OnRead = false;
bool OnWrite = false;
bool OnRead;
bool OnWrite;
bool Log = false;
bool Break = false;
bool Log;
bool Break;
u32 numHits;
u32 numHits = 0;
// returns whether to break
bool Action(DebugInterface* dbg_interface, u32 _iValue, u32 addr, bool write, int size, u32 pc);