mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +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:
@ -87,11 +87,11 @@ class extrude2DMesh
|
||||
//- Find extrusion direction
|
||||
//void findExtrudeDirection();
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
extrude2DMesh(const extrude2DMesh&);
|
||||
//- No copy construct
|
||||
extrude2DMesh(const extrude2DMesh&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const extrude2DMesh&);
|
||||
//- No copy assignment
|
||||
void operator=(const extrude2DMesh&) = delete;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -85,11 +85,11 @@ class patchToPoly2DMesh
|
||||
|
||||
void createPolyMeshComponents();
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
patchToPoly2DMesh(const patchToPoly2DMesh&);
|
||||
//- No copy construct
|
||||
patchToPoly2DMesh(const patchToPoly2DMesh&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const patchToPoly2DMesh&);
|
||||
//- No copy assignment
|
||||
void operator=(const patchToPoly2DMesh&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user