Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodall <[email protected]>
  • Loading branch information
wjwwood committed Feb 19, 2019
1 parent d7be15c commit 8883746
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion rclcpp/include/rclcpp/node_interfaces/node_parameters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class NodeParameters : public NodeParametersInterface
std::map<std::string, rclcpp::Parameter> & parameters) const override;

RCLCPP_PUBLIC
virtual
std::vector<rcl_interfaces::msg::ParameterDescriptor>
describe_parameters(const std::vector<std::string> & names) const override;

Expand Down
10 changes: 6 additions & 4 deletions rclcpp/include/rclcpp/parameter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ namespace rclcpp

class Parameter;

namespace node_interfaces{
namespace node_interfaces
{
struct ParameterInfo;
} // namespace node_interfaces

Expand Down Expand Up @@ -191,9 +192,10 @@ auto
get_value_helper<rclcpp::Parameter>(const rclcpp::Parameter * parameter)
{
// Use this labmda to ensure it's a const reference being returned (and not a copy).
auto type_enforcing_lambda = [&parameter]() -> const rclcpp::Parameter & {
return *parameter;
};
auto type_enforcing_lambda =
[&parameter]() -> const rclcpp::Parameter & {
return *parameter;
};
return type_enforcing_lambda();
}

Expand Down

0 comments on commit 8883746

Please sign in to comment.