diff options
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(); } }; |