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 7f67b3e46e
commit 665b1f821e
70 changed files with 245 additions and 353 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -51,11 +51,11 @@ class NullObject
NullObject()
{}
//- Prevent copy-construction
//- Disallow default bitwise copy construct
NullObject(const NullObject&);
//- Prevent assignment
NullObject& operator=(const NullObject&);
//- Disallow default bitwise assignment
void operator=(const NullObject&);
public: