mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: consistent use of '= delete' for removed constructors/assignments
- make the purpose more explicit, and reduces some work for the compiler as well.
This commit is contained in:
@ -67,7 +67,7 @@ class edgeInterpolationScheme
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const edgeInterpolationScheme&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -78,11 +78,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
faNVDscheme(const faNVDscheme&);
|
||||
//- No copy construct
|
||||
faNVDscheme(const faNVDscheme&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const faNVDscheme&);
|
||||
//- No copy assignment
|
||||
void operator=(const faNVDscheme&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -63,11 +63,11 @@ class blendedEdgeInterpolation
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
blendedEdgeInterpolation(const blendedEdgeInterpolation&);
|
||||
//- No copy construct
|
||||
blendedEdgeInterpolation(const blendedEdgeInterpolation&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const blendedEdgeInterpolation&);
|
||||
//- No copy assignment
|
||||
void operator=(const blendedEdgeInterpolation&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -56,8 +56,8 @@ class linearEdgeInterpolation
|
||||
{
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const linearEdgeInterpolation&);
|
||||
//- No copy assignment
|
||||
void operator=(const linearEdgeInterpolation&) = delete;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -62,8 +62,8 @@ class upwindEdgeInterpolation
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const upwindEdgeInterpolation&);
|
||||
//- No copy assignment
|
||||
void operator=(const upwindEdgeInterpolation&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -63,10 +63,10 @@ class volSurfaceMapping
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
volSurfaceMapping(const volSurfaceMapping&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const volSurfaceMapping&) = delete;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user