mirror of https://github.com/ArduPilot/ardupilot
AP_Param: fixed copy-assignment operators for AP_Param vectors
This commit is contained in:
parent
e656928c01
commit
70a135c47c
|
@ -350,13 +350,13 @@ public:
|
||||||
|
|
||||||
/// Copy assignment from self does nothing.
|
/// Copy assignment from self does nothing.
|
||||||
///
|
///
|
||||||
AP_ParamT<T,PT>& operator=(AP_ParamT<T,PT>& v) {
|
AP_ParamV<T,PT>& operator=(AP_ParamV<T,PT>& v) {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Copy assignment from T is equivalent to ::set.
|
/// Copy assignment from T is equivalent to ::set.
|
||||||
///
|
///
|
||||||
AP_ParamT<T,PT>& operator=(T v) {
|
AP_ParamV<T,PT>& operator=(T v) {
|
||||||
_value = v;
|
_value = v;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue