Skip to content
Permalink
Browse files
Merge pull request #6942 from lioncash/const
BreakPoints: Make OverlapsMemcheck() a const member function
  • Loading branch information
leoetlino committed May 22, 2018
2 parents 5ac0572 + 22ece80 commit 43680f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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;
@@ -81,7 +81,7 @@ class MemChecks

// 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(); }

0 comments on commit 43680f3

Please sign in to comment.