summaryrefslogtreecommitdiff
path: root/libjsonpp/jsonFlexLexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'libjsonpp/jsonFlexLexer.h')
-rw-r--r--libjsonpp/jsonFlexLexer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjsonpp/jsonFlexLexer.h b/libjsonpp/jsonFlexLexer.h
index 23f2562..b5ad9a3 100644
--- a/libjsonpp/jsonFlexLexer.h
+++ b/libjsonpp/jsonFlexLexer.h
@@ -23,7 +23,7 @@ namespace json {
void PushBoolean(bool);
void PushNumber(double);
void PushNull();
- void PushText(const std::string &);
+ void PushText(std::string &&);
void PushArray();
void PushObject();
@@ -32,7 +32,7 @@ namespace json {
std::string buf, name, encoding;
- typedef std::function<Value *(const Value &)> AcceptValue;
+ using AcceptValue = std::function<Value *(Value &&)>;
std::stack<AcceptValue> acceptValues;
};
}