empty is always constant, while size can be linear on older gcc versions. (wjp)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4054
This commit is contained in:
parent
32f0049408
commit
c27b446d67
1 changed files with 3 additions and 1 deletions
|
@ -448,7 +448,7 @@ bool CBreakpoint::CheckBreakpoint(Bitu seg, Bitu off)
|
|||
// Checks if breakpoint is valid and should stop execution
|
||||
{
|
||||
// Quick exit if there are no breakpoints
|
||||
if (BPoints.size() == 0) return false;
|
||||
if (BPoints.empty()) return false;
|
||||
|
||||
// Search matching breakpoint
|
||||
std::list<CBreakpoint*>::iterator i;
|
||||
|
@ -508,6 +508,8 @@ bool CBreakpoint::CheckBreakpoint(Bitu seg, Bitu off)
|
|||
bool CBreakpoint::CheckIntBreakpoint(PhysPt adr, Bit8u intNr, Bit16u ahValue, Bit16u alValue)
|
||||
// Checks if interrupt breakpoint is valid and should stop execution
|
||||
{
|
||||
if (BPoints.empty()) return false;
|
||||
|
||||
// Search matching breakpoint
|
||||
std::list<CBreakpoint*>::iterator i;
|
||||
CBreakpoint* bp;
|
||||
|
|
Loading…
Add table
Reference in a new issue