🔨 changed SAX interface
This commit is contained in:
parent
2537677e4c
commit
4f6b2b6429
10 changed files with 91 additions and 83 deletions
|
|
@ -67,7 +67,7 @@ class SaxEventLogger : public nlohmann::json::json_sax_t
|
|||
return true;
|
||||
}
|
||||
|
||||
bool string(std::string&& val) override
|
||||
bool string(std::string& val) override
|
||||
{
|
||||
events.push_back("string(" + val + ")");
|
||||
return true;
|
||||
|
|
@ -86,7 +86,7 @@ class SaxEventLogger : public nlohmann::json::json_sax_t
|
|||
return true;
|
||||
}
|
||||
|
||||
bool key(std::string&& val) override
|
||||
bool key(std::string& val) override
|
||||
{
|
||||
events.push_back("key(" + val + ")");
|
||||
return true;
|
||||
|
|
@ -159,7 +159,7 @@ class SaxCountdown : public nlohmann::json::json_sax_t
|
|||
return events_left-- > 0;
|
||||
}
|
||||
|
||||
bool string(std::string&&) override
|
||||
bool string(std::string&) override
|
||||
{
|
||||
return events_left-- > 0;
|
||||
}
|
||||
|
|
@ -169,7 +169,7 @@ class SaxCountdown : public nlohmann::json::json_sax_t
|
|||
return events_left-- > 0;
|
||||
}
|
||||
|
||||
bool key(std::string&&) override
|
||||
bool key(std::string&) override
|
||||
{
|
||||
return events_left-- > 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue