BreakPoints: Make OverlapsMemcheck() a const member function

This doesn't modify class state, it only queries said state.
This commit is contained in:
Lioncash 2018-05-22 09:42:16 -04:00
parent 5ac05725c8
commit 22ece80f19
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ TMemCheck* MemChecks::GetMemCheck(u32 address, size_t size)
return &*iter;
}
bool MemChecks::OverlapsMemcheck(u32 address, u32 length)
bool MemChecks::OverlapsMemcheck(u32 address, u32 length) const
{
if (!HasAny())
return false;

View File

@ -81,7 +81,7 @@ public:
// memory breakpoint
TMemCheck* GetMemCheck(u32 address, size_t size = 1);
bool OverlapsMemcheck(u32 address, u32 length);
bool OverlapsMemcheck(u32 address, u32 length) const;
void Remove(u32 address);
void Clear() { m_mem_checks.clear(); }