Skip to content
Permalink
Browse files

Fixed missing break in switch-case (#158)

* 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 b5ab260c28e7bcad345f17431e8d45d7066669d6
Showing with 1 addition and 0 deletions.
  1. +1 −0 rviz_common/src/rviz_common/config.cpp
@@ -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());

0 comments on commit b5ab260

Please sign in to comment.
You can’t perform that action at this time.