From 4e649c60c0cb8a2ba9a17bbebedd0ca6b092b4d9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 11 Jan 2017 09:31:21 -0500 Subject: [PATCH] BreakPoints: Make getters const member functions Just const-correctness stuff. The returned collection can't be modified, so this makes sense. --- Source/Core/Core/PowerPC/BreakPoints.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/PowerPC/BreakPoints.h b/Source/Core/Core/PowerPC/BreakPoints.h index c84870ee76..b9481b5d18 100644 --- a/Source/Core/Core/PowerPC/BreakPoints.h +++ b/Source/Core/Core/PowerPC/BreakPoints.h @@ -51,7 +51,7 @@ public: using TBreakPoints = std::vector; using TBreakPointsStr = std::vector; - const TBreakPoints& GetBreakPoints() { return m_breakpoints; } + const TBreakPoints& GetBreakPoints() const { return m_breakpoints; } TBreakPointsStr GetStrings() const; void AddFromStrings(const TBreakPointsStr& bp_strings); @@ -79,7 +79,7 @@ public: using TMemChecks = std::vector; using TMemChecksStr = std::vector; - const TMemChecks& GetMemChecks() { return m_mem_checks; } + const TMemChecks& GetMemChecks() const { return m_mem_checks; } TMemChecksStr GetStrings() const; void AddFromStrings(const TMemChecksStr& mc_strings); @@ -101,7 +101,7 @@ public: using TWatches = std::vector; using TWatchesStr = std::vector; - const TWatches& GetWatches() { return m_watches; } + const TWatches& GetWatches() const { return m_watches; } TWatchesStr GetStrings() const; void AddFromStrings(const TWatchesStr& watch_strings);