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:
Mark Olesen
2018-05-30 12:03:17 +02:00
parent 6b6b36afd3
commit f9fe71815a
976 changed files with 3606 additions and 3419 deletions

View File

@ -67,7 +67,7 @@ class edgeInterpolationScheme
// Private Member Functions
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const edgeInterpolationScheme&) = delete;

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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;