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:
@ -95,11 +95,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
fieldVisualisationBase(const fieldVisualisationBase&);
|
||||
//- No copy construct
|
||||
fieldVisualisationBase(const fieldVisualisationBase&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const fieldVisualisationBase&);
|
||||
//- No copy assignment
|
||||
void operator=(const fieldVisualisationBase&) = delete;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@ -59,11 +59,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
functionObjectBase(const functionObjectBase&);
|
||||
//- No copy construct
|
||||
functionObjectBase(const functionObjectBase&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const functionObjectBase&);
|
||||
//- No copy assignment
|
||||
void operator=(const functionObjectBase&) = delete;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@ -60,10 +60,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
functionObjectCloud(const functionObjectCloud&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const functionObjectCloud&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -60,10 +60,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
functionObjectLine(const functionObjectLine&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const functionObjectLine&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -61,10 +61,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
functionObjectSurface(const functionObjectSurface&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const functionObjectSurface&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -82,11 +82,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
geometryBase(const geometryBase&);
|
||||
//- No copy construct
|
||||
geometryBase(const geometryBase&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const geometryBase&);
|
||||
//- No copy assignment
|
||||
void operator=(const geometryBase&) = delete;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@ -60,10 +60,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
geometrySurface(const geometrySurface&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const geometrySurface&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -78,10 +78,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
pathline(const pathline&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const pathline&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -76,10 +76,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
pointData(const pointData&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const pointData&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -111,11 +111,11 @@ class scene
|
||||
const bool visible
|
||||
) const;
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
scene(const scene&);
|
||||
//- No copy construct
|
||||
scene(const scene&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const scene&);
|
||||
//- No copy assignment
|
||||
void operator=(const scene&) = delete;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@ -81,10 +81,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
surface(const surface&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const surface&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -77,10 +77,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
text(const text&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const text&) = delete;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user