We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1273d commit b07ff80Copy full SHA for b07ff80
json-writer.cc
@@ -52,7 +52,7 @@ void JsonWriter::setScanProps(const TScanProps &scanProps) {
52
d->scanProps = scanProps;
53
}
54
55
-void JsonWriter::handleDef(const Defect &def) {
+void appendDefectNode(boost::property_tree::ptree &dst, const Defect &def) {
56
using std::string;
57
58
// go through events
@@ -93,7 +93,11 @@ void JsonWriter::handleDef(const Defect &def) {
93
defNode.put_child("events", evtList);
94
95
// append the node to the list
96
- d->defList.push_back(std::make_pair("", defNode));
+ dst.push_back(std::make_pair("", defNode));
97
+}
98
+
99
+void JsonWriter::handleDef(const Defect &def) {
100
+ appendDefectNode(d->defList, def);
101
102
103
void JsonWriter::flush() {
0 commit comments