Permalink
Browse files

BreakPoints: Make OverlapsMemcheck() a const member function

This doesn't modify class state, it only queries said state.
  • Loading branch information...
lioncash committed May 22, 2018
1 parent 5ac0572 commit 22ece80f19c245afe4d669bdbd260c8a769efdeb
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/Core/PowerPC/BreakPoints.cpp
  2. +1 −1 Source/Core/Core/PowerPC/BreakPoints.h
@@ -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 22ece80

Please sign in to comment.