BreakPoints: Make getters const member functions

Just const-correctness stuff. The returned collection can't be modified,
so this makes sense.
This commit is contained in:
Lioncash 2017-01-11 09:31:21 -05:00
parent 0f8bcf412d
commit 4e649c60c0
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public:
using TBreakPoints = std::vector<TBreakPoint>; using TBreakPoints = std::vector<TBreakPoint>;
using TBreakPointsStr = std::vector<std::string>; using TBreakPointsStr = std::vector<std::string>;
const TBreakPoints& GetBreakPoints() { return m_breakpoints; } const TBreakPoints& GetBreakPoints() const { return m_breakpoints; }
TBreakPointsStr GetStrings() const; TBreakPointsStr GetStrings() const;
void AddFromStrings(const TBreakPointsStr& bp_strings); void AddFromStrings(const TBreakPointsStr& bp_strings);
@ -79,7 +79,7 @@ public:
using TMemChecks = std::vector<TMemCheck>; using TMemChecks = std::vector<TMemCheck>;
using TMemChecksStr = std::vector<std::string>; using TMemChecksStr = std::vector<std::string>;
const TMemChecks& GetMemChecks() { return m_mem_checks; } const TMemChecks& GetMemChecks() const { return m_mem_checks; }
TMemChecksStr GetStrings() const; TMemChecksStr GetStrings() const;
void AddFromStrings(const TMemChecksStr& mc_strings); void AddFromStrings(const TMemChecksStr& mc_strings);
@ -101,7 +101,7 @@ public:
using TWatches = std::vector<TWatch>; using TWatches = std::vector<TWatch>;
using TWatchesStr = std::vector<std::string>; using TWatchesStr = std::vector<std::string>;
const TWatches& GetWatches() { return m_watches; } const TWatches& GetWatches() const { return m_watches; }
TWatchesStr GetStrings() const; TWatchesStr GetStrings() const;
void AddFromStrings(const TWatchesStr& watch_strings); void AddFromStrings(const TWatchesStr& watch_strings);