diff options
author | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-05-24 00:04:54 +1000 |
commit | 85237dd55cd67cf9f72a751f5a275a910350e5cd (patch) | |
tree | 6a0072e11ce30bf18130cf7fcc3baa37d5fd92fe /lexlib/OptionSet.h | |
parent | d6e875c9b3a507551eb32ca3fff159eb07189fd9 (diff) | |
download | scintilla-mirror-85237dd55cd67cf9f72a751f5a275a910350e5cd.tar.gz |
Made methods const where they can be and are logically const as well.
Diffstat (limited to 'lexlib/OptionSet.h')
-rw-r--r-- | lexlib/OptionSet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lexlib/OptionSet.h b/lexlib/OptionSet.h index 873ac8b6c..2935a2089 100644 --- a/lexlib/OptionSet.h +++ b/lexlib/OptionSet.h @@ -40,7 +40,7 @@ class OptionSet { Option(plcos ps_, std::string description_) : opType(SC_TYPE_STRING), ps(ps_), description(description_) { } - bool Set(T *base, const char *val) { + bool Set(T *base, const char *val) const { switch (opType) { case SC_TYPE_BOOLEAN: { bool option = atoi(val) != 0; @@ -94,7 +94,7 @@ public: nameToDef[name] = Option(ps, description); AppendName(name); } - const char *PropertyNames() { + const char *PropertyNames() const { return names.c_str(); } int PropertyType(const char *name) { @@ -130,7 +130,7 @@ public: } } - const char *DescribeWordListSets() { + const char *DescribeWordListSets() const { return wordLists.c_str(); } }; |