Merge pull request #6942 from lioncash/const

BreakPoints: Make OverlapsMemcheck() a const member function
This commit is contained in:
Léo Lam 2018-05-22 19:14:27 +02:00 committed by GitHub
commit 43680f314c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(); }