diff --git a/libraries/AP_Common/AP_Param.h b/libraries/AP_Common/AP_Param.h index c811a23b44..3207911356 100644 --- a/libraries/AP_Common/AP_Param.h +++ b/libraries/AP_Common/AP_Param.h @@ -350,13 +350,13 @@ public: /// Copy assignment from self does nothing. /// - AP_ParamT& operator=(AP_ParamT& v) { + AP_ParamV& operator=(AP_ParamV& v) { return v; } /// Copy assignment from T is equivalent to ::set. /// - AP_ParamT& operator=(T v) { + AP_ParamV& operator=(T v) { _value = v; return *this; }