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

@ -98,11 +98,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
cellVolumeWeightMethod(const cellVolumeWeightMethod&);
//- No copy construct
cellVolumeWeightMethod(const cellVolumeWeightMethod&) = delete;
//- Disallow default bitwise assignment
void operator=(const cellVolumeWeightMethod&);
//- No copy assignment
void operator=(const cellVolumeWeightMethod&) = delete;
public:

View File

@ -72,11 +72,14 @@ protected:
label& startSeedI
);
//- Disallow default bitwise copy construct
correctedCellVolumeWeightMethod(const correctedCellVolumeWeightMethod&);
//- No copy construct
correctedCellVolumeWeightMethod
(
const correctedCellVolumeWeightMethod&
) = delete;
//- Disallow default bitwise assignment
void operator=(const correctedCellVolumeWeightMethod&);
//- No copy assignment
void operator=(const correctedCellVolumeWeightMethod&) = delete;
public:

View File

@ -103,11 +103,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
directMethod(const directMethod&);
//- No copy construct
directMethod(const directMethod&) = delete;
//- Disallow default bitwise assignment
void operator=(const directMethod&);
//- No copy assignment
void operator=(const directMethod&) = delete;
public:

View File

@ -111,11 +111,11 @@ protected:
const List<DynamicList<label>>& tgtToSrc
) const;
//- Disallow default bitwise copy construct
mapNearestMethod(const mapNearestMethod&);
//- No copy construct
mapNearestMethod(const mapNearestMethod&) = delete;
//- Disallow default bitwise assignment
void operator=(const mapNearestMethod&);
//- No copy assignment
void operator=(const mapNearestMethod&) = delete;
public:

View File

@ -114,11 +114,11 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
meshToMeshMethod(const meshToMeshMethod&);
//- No copy construct
meshToMeshMethod(const meshToMeshMethod&) = delete;
//- Disallow default bitwise assignment
void operator=(const meshToMeshMethod&);
//- No copy assignment
void operator=(const meshToMeshMethod&) = delete;
public:

View File

@ -282,11 +282,11 @@ private:
) const;
//- Disallow default bitwise copy construct
meshToMesh(const meshToMesh&);
//- No copy construct
meshToMesh(const meshToMesh&) = delete;
//- Disallow default bitwise assignment
void operator=(const meshToMesh&);
//- No copy assignment
void operator=(const meshToMesh&) = delete;
public:

View File

@ -147,11 +147,11 @@ protected:
private:
//- Disallow default bitwise copy construct
patchProbes(const patchProbes&);
//- No copy construct
patchProbes(const patchProbes&) = delete;
//- Disallow default bitwise assignment
void operator=(const patchProbes&);
//- No copy assignment
void operator=(const patchProbes&) = delete;
public:

View File

@ -227,10 +227,10 @@ private:
template<class Type>
void sampleAndWriteSurfaceFields(const fieldGroup<Type>&);
//- Disallow default bitwise copy construct
//- No copy construct
probes(const probes&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const probes&) = delete;

View File

@ -240,8 +240,10 @@ class sampledSets
void sampleAndWrite(fieldGroup<Type>& fields);
//- Disallow default bitwise copy construct and assignment
//- No copy construct
sampledSets(const sampledSets&) = delete;
//- No copy assignment
void operator=(const sampledSets&) = delete;