MCPcopy Create free account
hub / github.com/audacity/audacity / ToString

Method ToString

libraries/lib-sentry-reporting/SentryReport.cpp:379–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379std::string Report::ReportImpl::ToString(bool pretty) const
380{
381 rapidjson::StringBuffer buffer;
382
383 if (pretty)
384 {
385 rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buffer);
386 mDocument.Accept(writer);
387 }
388 else
389 {
390 rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
391 mDocument.Accept(writer);
392 }
393
394 return std::string(buffer.GetString());
395}
396
397Report::~Report()
398{

Callers 1

GetReportPreviewMethod · 0.45

Calls 1

GetStringMethod · 0.45

Tested by

no test coverage detected