From d7fb1cb3093e17d79598c9aaabedf77465960ac6 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 12 Oct 2019 02:46:03 -0500 Subject: hscript: Key members are always /const/ --- hscript/key.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hscript') diff --git a/hscript/key.hh b/hscript/key.hh index aa8ed81..960095c 100644 --- a/hscript/key.hh +++ b/hscript/key.hh @@ -65,7 +65,7 @@ public: */ class BooleanKey : public Key { protected: - bool value; + const bool value; BooleanKey(int _line, bool my_value) : Key(_line), value(my_value) {} /*! Parse a string into a boolean. @@ -91,7 +91,7 @@ public: /*! Base Key class that parses and handles single string values. */ class StringKey : public Key { protected: - std::string _value; + const std::string _value; StringKey(int _line, std::string my_str) : Key(_line), _value(my_str) {} public: -- cgit v1.2.3-60-g2f50