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:
@ -91,11 +91,11 @@ class cellSplitter
|
||||
const Map<labelList>& cellToCells
|
||||
) const;
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
cellSplitter(const cellSplitter&);
|
||||
//- No copy construct
|
||||
cellSplitter(const cellSplitter&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const cellSplitter&);
|
||||
//- No copy assignment
|
||||
void operator=(const cellSplitter&) = delete;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -68,11 +68,11 @@ class edgeStats
|
||||
direction getNormalDir(const twoDPointCorrector*) const;
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
edgeStats(const edgeStats&);
|
||||
//- No copy construct
|
||||
edgeStats(const edgeStats&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const edgeStats&);
|
||||
//- No copy assignment
|
||||
void operator=(const edgeStats&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user