Also switched explain over to own async framework.

This commit is contained in:
Eelke Klein 2016-12-30 10:38:46 +01:00
parent 4dc55288b5
commit c551d982c6
6 changed files with 17 additions and 17 deletions

View file

@ -51,9 +51,9 @@ namespace {
} // END of unnamed namespace
std::unique_ptr<ExplainRoot> ExplainRoot::createFromJson(Json::Value &json)
ExplainRoot::SPtr ExplainRoot::createFromJson(Json::Value &json)
{
auto res = std::make_unique<ExplainRoot>();
auto res = std::make_shared<ExplainRoot>();
// Explain always seems to be an array with one element
if (json.isArray()) {
if (json.size() > 0) {