Provide consistency in assignment operators

Always return void to avoid various bugs associated with automatic
type conversion.

Resolves request http://openfoam.org/mantisbt/view.php?id=1973
This commit is contained in:
Henry Weller
2016-01-17 18:56:28 +00:00
parent 8effc018c1
commit 59b578f155
70 changed files with 245 additions and 353 deletions

View File

@ -258,7 +258,7 @@ public:
//- Fix the vertex so that it can't be moved
inline bool& fixed();
inline indexedVertex& operator=(const indexedVertex& rhs)
inline void operator=(const indexedVertex& rhs)
{
Vb::operator=(rhs);
@ -268,8 +268,6 @@ public:
this->alignment_ = rhs.alignment();
this->targetCellSize_ = rhs.targetCellSize();
this->vertexFixed_ = rhs.fixed();
return *this;
}
inline bool operator==(const indexedVertex& rhs) const