Commit e05af734 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Proper return from assignment

parent 88ada228
......@@ -59,7 +59,10 @@ public:
/// \brief Direct assignment from other Serial
///
/// \param other The Serial to assign the value from
void operator=(const Serial& other) { value_ = other.getValue(); }
Serial &operator=(const Serial& other) {
value_ = other.getValue();
return (*this);
}
/// \brief Direct assignment from value
///
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment