Skip to content

Commit

Permalink
Fixed a bug in the C++ metrics service.
Browse files Browse the repository at this point in the history
  • Loading branch information
intjftw committed Jul 15, 2024
1 parent 1eaa71b commit d2128e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/cpp_metrics/service/src/cppmetricsservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,8 @@ void CppMetricsServiceHandler::getCppAstNodeMetricsDetailedForPath(
metric.astValue = node.astValue;
metric.symbolType = cc::model::symbolTypeToString(node.symbolType);
metric.astType = cc::model::astTypeToString(node.astType);
metric.metrics.insert(pair);

std::map<CppAstNodeMetricsType::type, double> metricsList;
metricsList.insert(pair);
_return.insert(std::make_pair(std::to_string(node.astNodeId), metric));
}
}
Expand Down

0 comments on commit d2128e8

Please sign in to comment.