diff options
Diffstat (limited to 'libjsonpp/jsonFlexLexer.cpp')
-rw-r--r-- | libjsonpp/jsonFlexLexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjsonpp/jsonFlexLexer.cpp b/libjsonpp/jsonFlexLexer.cpp index 95fb955..e4019be 100644 --- a/libjsonpp/jsonFlexLexer.cpp +++ b/libjsonpp/jsonFlexLexer.cpp @@ -3,9 +3,9 @@ #include <glibmm/convert.h> namespace json { - jsonFlexLexer::jsonFlexLexer(std::istream & in, const std::string & enc, Value & v) : - yyFlexLexer(&in, NULL), - encoding(enc) + jsonFlexLexer::jsonFlexLexer(std::istream & in, std::string enc, Value & v) : + yyFlexLexer(&in, nullptr), + encoding(std::move(enc)) { yy_push_state(0); acceptValues.push([&v](const auto & value) { |