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:
parent
0f8bcf412d
commit
4e649c60c0
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue