File tree 1 file changed +2
-3
lines changed
diagnostic_aggregator/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ void Aggregator::publishData()
228
228
diag_toplevel_state.level = -1 ;
229
229
int min_level = 255 ;
230
230
uint non_ok_status_depth = 0 ;
231
- uint depth = 0 ;
232
231
uint report_idx = 0 ;
233
232
234
233
vector<boost::shared_ptr<diagnostic_msgs::DiagnosticStatus> > processed;
@@ -240,7 +239,7 @@ void Aggregator::publishData()
240
239
{
241
240
diag_array.status .push_back (*processed[i]);
242
241
243
- depth = static_cast <uint >(std::count (processed[i]->name .begin (), processed[i]->name .end (), ' /' ));
242
+ const uint depth = static_cast <uint >(std::count (processed[i]->name .begin (), processed[i]->name .end (), ' /' ));
244
243
if (processed[i]->level > diag_toplevel_state.level )
245
244
{
246
245
diag_toplevel_state.level = processed[i]->level ;
@@ -279,7 +278,7 @@ void Aggregator::publishData()
279
278
{
280
279
diag_array.status .push_back (*processed_other[i]);
281
280
282
- depth = static_cast <uint >(std::count (processed[i]->name .begin (), processed[i]->name .end (), ' /' ));
281
+ const uint depth = static_cast <uint >(std::count (processed[i]->name .begin (), processed[i]->name .end (), ' /' ));
283
282
if (processed_other[i]->level > diag_toplevel_state.level )
284
283
{
285
284
diag_toplevel_state.level = processed_other[i]->level ;
You can’t perform that action at this time.
0 commit comments