Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad1c2221 authored by Haibo Huang's avatar Haibo Huang
Browse files

[libnblog] Use new jsoncpp API

Reader / StyledWriter are deprecated upstream

Bug: 170642246
Change-Id: Id48592c7ef47392910b771e0da4d1d306b3424d8
parent edc1fff4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ void dumpJson(int fd, const std::map<int, PerformanceData>& threadDataMap)
        (*dataJson)["threadNum"] = item.first;
        root.append(*dataJson);
    }
    Json::StyledWriter writer;
    std::string rootStr = writer.write(root);
    Json::StreamWriterBuilder factory;
    std::string rootStr = Json::writeString(factory, root);
    write(fd, rootStr.c_str(), rootStr.size());
}