summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjsonpp/jsonFlexLexer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjsonpp/jsonFlexLexer.h b/libjsonpp/jsonFlexLexer.h
index b5ad9a3..eeefaba 100644
--- a/libjsonpp/jsonFlexLexer.h
+++ b/libjsonpp/jsonFlexLexer.h
@@ -30,7 +30,8 @@ namespace json {
private:
std::string encodeBuf() const;
- std::string buf, name, encoding;
+ std::string buf, name;
+ const std::string encoding;
using AcceptValue = std::function<Value *(Value &&)>;
std::stack<AcceptValue> acceptValues;