From d9a1fc15642030bd580d5c77842d0d7d9a1fa050 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 28 Oct 2014 04:28:50 -0700 Subject: [PATCH] BreakPoints: Fix compile warning --- Source/Core/Common/BreakPoints.cpp | 2 +- Source/Core/Common/BreakPoints.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/BreakPoints.cpp b/Source/Core/Common/BreakPoints.cpp index 8772a2287f..bd2355ed4b 100644 --- a/Source/Core/Common/BreakPoints.cpp +++ b/Source/Core/Common/BreakPoints.cpp @@ -219,7 +219,7 @@ void TMemCheck::Action(DebugInterface *debug_interface, u32 iValue, u32 addr, bo } -const bool Watches::IsAddressWatch(u32 _iAddress) +bool Watches::IsAddressWatch(u32 _iAddress) const { for (const TWatch& bp : m_Watches) if (bp.iAddress == _iAddress) diff --git a/Source/Core/Common/BreakPoints.h b/Source/Core/Common/BreakPoints.h index 7534f41400..0aec08173b 100644 --- a/Source/Core/Common/BreakPoints.h +++ b/Source/Core/Common/BreakPoints.h @@ -118,7 +118,7 @@ public: TWatchesStr GetStrings() const; void AddFromStrings(const TWatchesStr& bps); - const bool IsAddressWatch(u32 _iAddress); + bool IsAddressWatch(u32 _iAddress) const; // Add BreakPoint void Add(u32 em_address); @@ -135,4 +135,4 @@ public: private: TWatches m_Watches; -}; \ No newline at end of file +};