AP_Param: fixed copy-assignment operators for AP_Param vectors

This commit is contained in:
Andrew Tridgell 2012-02-17 15:13:51 +11:00
parent e656928c01
commit 70a135c47c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }