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
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2016 OpenFOAM Foundation
@ -151,8 +151,8 @@ class lduAddressing
public:
// Constructor
lduAddressing(const label nEqns)
//- Construct with size (number of equations)
explicit lduAddressing(const label nEqns)
:
size_(nEqns),
losortPtr_(nullptr),

View File

@ -26,7 +26,6 @@ License
\*---------------------------------------------------------------------------*/
#include "cyclicLduInterface.H"
#include "diagTensorField.H"
// * * * * * * * * * * * * * * 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
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation
@ -51,7 +51,6 @@ namespace Foam
class cyclicLduInterface
{
public:
//- Runtime type information
@ -59,8 +58,12 @@ public:
// Constructors
//- Construct null
cyclicLduInterface() = default;
//- Destructor
virtual ~cyclicLduInterface();
virtual ~cyclicLduInterface() = default;
// Member Functions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -82,7 +82,7 @@ public:
// Constructors
//- Construct from fine level interface,
// local and neighbour restrict addressing
//- local and neighbour restrict addressing
cyclicAMIGAMGInterface
(
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
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2013 OpenFOAM Foundation
@ -52,7 +52,6 @@ class cyclicACMILduInterface
:
public cyclicAMILduInterface
{
public:
//- Runtime type information
@ -62,12 +61,11 @@ public:
// Constructors
//- Construct null
cyclicACMILduInterface()
{}
cyclicACMILduInterface() = default;
//- 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
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2013 OpenFOAM Foundation
@ -61,12 +61,11 @@ public:
// Constructors
//- Construct null
cyclicAMILduInterface()
{}
cyclicAMILduInterface() = default;
//- Destructor
virtual ~cyclicAMILduInterface();
virtual ~cyclicAMILduInterface() = default;
// Member Functions