MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / writeError

Method writeError

gui/printablereport.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void PrintableReport::writeError(const ErrorItem &error)
46{
47 const QString file = QDir::toNativeSeparators(error.errorPath.back().file);
48 QString line = QString("%1,%2,").arg(file).arg(error.errorPath.back().line);
49 line += QString("%1,%2").arg(GuiSeverity::toString(error.severity)).arg(error.summary);
50
51 mFormattedReport += line;
52 mFormattedReport += "\n";
53}
54
55const QString& PrintableReport::getFormattedReportText() const
56{

Callers

nothing calls this directly

Calls 2

QStringClass · 0.70
toStringFunction · 0.50

Tested by

no test coverage detected