From 70a135c47c4126d44aa72094550f7b2db65ee8bd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 Feb 2012 15:13:51 +1100 Subject: [PATCH] AP_Param: fixed copy-assignment operators for AP_Param vectors --- libraries/AP_Common/AP_Param.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }