From 2732dc828ec20232672d6a9ea55f25ba9b0490b2 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Dec 2019 11:54:51 +0000 Subject: Encoding should be const --- libjsonpp/jsonFlexLexer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; std::stack acceptValues; -- cgit v1.2.3