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:
@ -147,10 +147,10 @@ class functionObject
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
functionObject(const functionObject&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const functionObject&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -104,10 +104,10 @@ class functionObjectList
|
||||
//- configuration files, add to the given map and recurse
|
||||
static void listDir(const fileName& dir, wordHashSet& foMap);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
functionObjectList(const functionObjectList&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const functionObjectList&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -86,11 +86,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
logFiles(const logFiles&);
|
||||
//- No copy construct
|
||||
logFiles(const logFiles&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const logFiles&);
|
||||
//- No copy assignment
|
||||
void operator=(const logFiles&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -135,10 +135,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
regionFunctionObject(const regionFunctionObject&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const regionFunctionObject&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -77,10 +77,10 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
//- No copy construct
|
||||
stateFunctionObject(const stateFunctionObject&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy assignment
|
||||
void operator=(const stateFunctionObject&) = delete;
|
||||
|
||||
|
||||
|
||||
@ -95,11 +95,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct and assignment
|
||||
timeControl(const timeControl&);
|
||||
//- No copy construct
|
||||
timeControl(const timeControl&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const timeControl&);
|
||||
//- No copy assignment
|
||||
void operator=(const timeControl&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -151,11 +151,11 @@ class timeControl
|
||||
const bool rampDirectionUp
|
||||
);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
timeControl(const timeControl&);
|
||||
//- No copy construct
|
||||
timeControl(const timeControl&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const timeControl&);
|
||||
//- No copy assignment
|
||||
void operator=(const timeControl&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@ -108,11 +108,11 @@ private:
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
writeFile(const writeFile&);
|
||||
//- No copy construct
|
||||
writeFile(const writeFile&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const writeFile&);
|
||||
//- No copy assignment
|
||||
void operator=(const writeFile&) = delete;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user