mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
Solve sigsegv (old way of ParserHandler was still used)
fixed GH #145: Solve sigsegv (old way of ParserHandler was still used)
This commit is contained in:
parent
f9aea9acdf
commit
a6f8d07757
@ -90,12 +90,10 @@ int main(int argc, char** argv)
|
||||
std::cout << "--------------------------" << std::endl;
|
||||
try
|
||||
{
|
||||
Poco::JSON::ParseHandler handler;
|
||||
Poco::JSON::Parser parser;
|
||||
parser.setHandler(&handler);
|
||||
sw.restart();
|
||||
parser.parse(jsonStr);
|
||||
Poco::DynamicAny result = handler.result();
|
||||
Poco::DynamicAny result = parser.result();
|
||||
sw.stop();
|
||||
std::cout << "parsed/handled in " << sw.elapsed() << " [us]," << std::endl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user