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

@ -89,10 +89,10 @@ class abort
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
abort(const abort&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const abort&) = delete;

View File

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

View File

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

View File

@ -106,10 +106,10 @@ private:
// Private member functions
//- Disallow default bitwise copy construct
//- No copy construct
residuals(const residuals&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const residuals&) = delete;

View File

@ -83,11 +83,11 @@ class runTimeControl
// Private Member Functions
//- Disallow default bitwise copy construct
runTimeControl(const runTimeControl&);
//- No copy construct
runTimeControl(const runTimeControl&) = delete;
//- Disallow default bitwise assignment
void operator=(const runTimeControl&);
//- No copy assignment
void operator=(const runTimeControl&) = delete;
public:

View File

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

View File

@ -131,10 +131,10 @@ protected:
//- Dispatch specified calls
label dispatch(const stringList& calls);
//- Disallow default bitwise copy construct
//- No copy construct
systemCall(const systemCall&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const systemCall&) = delete;

View File

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

View File

@ -115,11 +115,11 @@ class timeActivatedFileUpdate
//- Update file
void updateFile();
//- Disallow default bitwise copy construct
timeActivatedFileUpdate(const timeActivatedFileUpdate&);
//- No copy construct
timeActivatedFileUpdate(const timeActivatedFileUpdate&) = delete;
//- Disallow default bitwise assignment
void operator=(const timeActivatedFileUpdate&);
//- No copy assignment
void operator=(const timeActivatedFileUpdate&) = delete;
public:

View File

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

View File

@ -137,10 +137,10 @@ private:
// Private Member Functions
//- Disallow default bitwise copy construct
//- No copy construct
writeObjects(const writeObjects&) = delete;
//- Disallow default bitwise assignment
//- No copy assignment
void operator=(const writeObjects&) = delete;