Skip to content

Commit

Permalink
Fixed missing break in switch-case (#158)
Browse files Browse the repository at this point in the history
* Fall-through is not intended: listAppendNew sets the type to List
  while the call to setValue after the fall-through resets the type to
  Value.
  • Loading branch information
racko authored and wjwwood committed Dec 15, 2017
1 parent 1822ef6 commit b5ab260
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rviz_common/src/rviz_common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ void Config::copy(const Config & source) // NOLINT linter wants #include <algor
for (int i = 0; i < num_children; i++) {
listAppendNew().copy(source.listChildAt(i));
}
break;
}
case Value:
setValue(source.getValue());
Expand Down

0 comments on commit b5ab260

Please sign in to comment.