STYLE: use default for constructors/destructors

This commit is contained in:
Mark Olesen
2019-10-28 16:13:42 +01:00
committed by Andrew Heather
parent 80daea6017
commit 4de1215b44
19 changed files with 33 additions and 80 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd. \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation | Copyright (C) 2011-2016 OpenFOAM Foundation
@ -151,8 +151,8 @@ class lduAddressing
public: public:
// Constructor //- Construct with size (number of equations)
lduAddressing(const label nEqns) explicit lduAddressing(const label nEqns)
: :
size_(nEqns), size_(nEqns),
losortPtr_(nullptr), losortPtr_(nullptr),

View File

@ -26,7 +26,6 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "cyclicLduInterface.H" #include "cyclicLduInterface.H"
#include "diagTensorField.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -36,10 +35,4 @@ defineTypeNameAndDebug(cyclicLduInterface, 0);
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::cyclicLduInterface::~cyclicLduInterface()
{}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation | Copyright (C) 2011 OpenFOAM Foundation
@ -51,7 +51,6 @@ namespace Foam
class cyclicLduInterface class cyclicLduInterface
{ {
public: public:
//- Runtime type information //- Runtime type information
@ -59,8 +58,12 @@ public:
// Constructors // Constructors
//- Construct null
cyclicLduInterface() = default;
//- Destructor //- Destructor
virtual ~cyclicLduInterface(); virtual ~cyclicLduInterface() = default;
// Member Functions // Member Functions

View File

@ -36,12 +36,6 @@ defineTypeNameAndDebug(cyclicLduInterfaceField, 0);
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::cyclicLduInterfaceField::~cyclicLduInterfaceField()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::cyclicLduInterfaceField::transformCoupleField void Foam::cyclicLduInterfaceField::transformCoupleField

View File

@ -60,13 +60,12 @@ public:
// Constructors // Constructors
//- Construct given coupled patch //- Construct null
cyclicLduInterfaceField() cyclicLduInterfaceField() = default;
{}
//- Destructor //- Destructor
virtual ~cyclicLduInterfaceField(); virtual ~cyclicLduInterfaceField() = default;
// Member Functions // Member Functions

View File

@ -85,7 +85,7 @@ public:
// Constructors // Constructors
//- Construct given coupled patch //- Construct given coupled patch
lduInterfaceField(const lduInterface& patch) explicit lduInterfaceField(const lduInterface& patch)
: :
interface_(patch), interface_(patch),
updatedMatrix_(false) updatedMatrix_(false)

View File

@ -36,12 +36,6 @@ defineTypeNameAndDebug(processorLduInterfaceField, 0);
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::processorLduInterfaceField::~processorLduInterfaceField()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::processorLduInterfaceField::transformCoupleField void Foam::processorLduInterfaceField::transformCoupleField

View File

@ -60,13 +60,12 @@ public:
// Constructors // Constructors
//- Construct given coupled patch //- Construct null
processorLduInterfaceField() processorLduInterfaceField() = default;
{}
//- Destructor //- Destructor
virtual ~processorLduInterfaceField(); virtual ~processorLduInterfaceField() = default;
// Member Functions // Member Functions

View File

@ -86,10 +86,4 @@ Foam::processorCyclicGAMGInterface::processorCyclicGAMGInterface
{} {}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::processorCyclicGAMGInterface::~processorCyclicGAMGInterface()
{}
// ************************************************************************* // // ************************************************************************* //

View File

@ -94,10 +94,8 @@ public:
); );
// Destructor //- Destructor
virtual ~processorCyclicGAMGInterface() = default;
virtual ~processorCyclicGAMGInterface();
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation | Copyright (C) 2011 OpenFOAM Foundation
@ -50,8 +50,6 @@ class valveBank
: :
public PtrList<engineValve> public PtrList<engineValve>
{ {
private:
// Private Member Functions // Private Member Functions
//- No copy construct //- No copy construct
@ -92,10 +90,8 @@ public:
} }
// Destructor - default //- Destructor
~valveBank() = default;
// Member Functions
}; };

View File

@ -113,7 +113,7 @@ public:
); );
// Destructor //- Destructor
virtual ~faPatchMapper(); virtual ~faPatchMapper();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2016-2017 Wikki Ltd | Copyright (C) 2016-2017 Wikki Ltd
@ -74,9 +74,6 @@ public:
// Constructors // Constructors
//- Construct null
volSurfaceMapping();
//- Construct from mesh //- Construct from mesh
volSurfaceMapping(const faMesh& mesh) volSurfaceMapping(const faMesh& mesh)
: :
@ -84,7 +81,8 @@ public:
{} {}
// Destructor - default //- Destructor
~volSurfaceMapping() = default;
// Member Functions // Member Functions

View File

@ -82,7 +82,7 @@ public:
// Constructors // Constructors
//- Construct from fine level interface, //- Construct from fine level interface,
// local and neighbour restrict addressing //- local and neighbour restrict addressing
cyclicACMIGAMGInterface cyclicACMIGAMGInterface
( (
const label index, const label index,

View File

@ -82,7 +82,7 @@ public:
// Constructors // Constructors
//- Construct from fine level interface, //- Construct from fine level interface,
// local and neighbour restrict addressing //- local and neighbour restrict addressing
cyclicAMIGAMGInterface cyclicAMIGAMGInterface
( (
const label index, const label index,

View File

@ -35,10 +35,4 @@ defineTypeNameAndDebug(cyclicACMILduInterface, 0);
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::cyclicACMILduInterface::~cyclicACMILduInterface()
{}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2013 OpenFOAM Foundation | Copyright (C) 2013 OpenFOAM Foundation
@ -52,7 +52,6 @@ class cyclicACMILduInterface
: :
public cyclicAMILduInterface public cyclicAMILduInterface
{ {
public: public:
//- Runtime type information //- Runtime type information
@ -62,12 +61,11 @@ public:
// Constructors // Constructors
//- Construct null //- Construct null
cyclicACMILduInterface() cyclicACMILduInterface() = default;
{}
//- Destructor //- Destructor
virtual ~cyclicACMILduInterface(); virtual ~cyclicACMILduInterface() = default;
}; };

View File

@ -35,10 +35,4 @@ defineTypeNameAndDebug(cyclicAMILduInterface, 0);
} }
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::cyclicAMILduInterface::~cyclicAMILduInterface()
{}
// ************************************************************************* // // ************************************************************************* //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | \\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
| Copyright (C) 2011-2013 OpenFOAM Foundation | Copyright (C) 2011-2013 OpenFOAM Foundation
@ -61,12 +61,11 @@ public:
// Constructors // Constructors
//- Construct null //- Construct null
cyclicAMILduInterface() cyclicAMILduInterface() = default;
{}
//- Destructor //- Destructor
virtual ~cyclicAMILduInterface(); virtual ~cyclicAMILduInterface() = default;
// Member Functions // Member Functions