Replace std::string with QString in rapidjson and PubSub Client (#3018)

This commit is contained in:
Paweł
2021-07-18 14:37:53 +02:00
committed by GitHub
parent 1f19d31a67
commit e5fe0999ee
4 changed files with 49 additions and 53 deletions
+2 -2
View File
@@ -19,13 +19,13 @@ namespace rj {
obj.AddMember(rapidjson::Value(key, a).Move(), value.Move(), a);
}
std::string stringify(const rapidjson::Value &value)
QString stringify(const rapidjson::Value &value)
{
rapidjson::StringBuffer buffer;
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
value.Accept(writer);
return std::string(buffer.GetString());
return buffer.GetString();
}
bool getSafeObject(rapidjson::Value &obj, const char *key,