Skip to content

Commit

Permalink
Merge pull request #748 from Dronecode/fix-gcc9-deprecated-copy
Browse files Browse the repository at this point in the history
core: fix deprecated-copy warning in GCC 9
  • Loading branch information
julianoes authored May 16, 2019
2 parents 64c7252 + 00ae76d commit 8bb6812
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/mavlink_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ class MAVLinkParameters {
public:
typedef char custom_type_t[128];

ParamValue &operator=(ParamValue value)
ParamValue() {}

ParamValue(ParamValue &rhs) { _value = rhs._value; }

ParamValue(const ParamValue &rhs) { _value = rhs._value; }

ParamValue &operator=(ParamValue rhs)
{
_value = value._value;
_value = rhs._value;
return *this;
}

Expand Down

0 comments on commit 8bb6812

Please sign in to comment.