Skip to content

Commit

Permalink
core: switch to std::make_unique
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Oct 21, 2019
1 parent 30d3645 commit 56d5087
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/core/mavlink_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class MAVLinkParameters {

class ParamValue {
public:

void set_from_mavlink_param_value(mavlink_param_value_t mavlink_value)
{
union {
Expand Down
2 changes: 1 addition & 1 deletion src/core/mavsdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace mavsdk {

Mavsdk::Mavsdk() : _impl{new MavsdkImpl()} {}
Mavsdk::Mavsdk() : _impl(std::make_unique<MavsdkImpl>()) {}

Mavsdk::~Mavsdk() {}

Expand Down

0 comments on commit 56d5087

Please sign in to comment.