diff options
author | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-05-24 00:04:54 +1000 |
commit | 44da106995e3b3ca4068f584c16f59d8fced4e69 (patch) | |
tree | 72512a72ac08ef47a2f40d9b30b0f208a245fda0 /lexlib/OptionSet.h | |
parent | 2345e207b44f01e09d8dba69a37b9a67eeefa884 (diff) | |
download | scintilla-mirror-44da106995e3b3ca4068f584c16f59d8fced4e69.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(); } }; |