mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user