COMP: explicitly declare copy construct for (point) symmetry field

- fixes -Wdeprecated-copy complaints
This commit is contained in:
Mark Olesen
2024-12-18 10:01:45 +01:00
parent da09e9203f
commit 207806e55d
5 changed files with 16 additions and 33 deletions

View File

@ -34,8 +34,8 @@ SourceFiles
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef basicSymmetryPointPatchField_H #ifndef Foam_basicSymmetryPointPatchField_H
#define basicSymmetryPointPatchField_H #define Foam_basicSymmetryPointPatchField_H
#include "pointPatchField.H" #include "pointPatchField.H"
#include "symmetryPointPatch.H" #include "symmetryPointPatch.H"
@ -54,7 +54,6 @@ class basicSymmetryPointPatchField
: :
public pointPatchField<Type> public pointPatchField<Type>
{ {
public: public:
// Constructors // Constructors
@ -83,6 +82,12 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Default copy construct
basicSymmetryPointPatchField
(
const basicSymmetryPointPatchField<Type>&
) = default;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
basicSymmetryPointPatchField basicSymmetryPointPatchField
( (

View File

@ -68,16 +68,6 @@ Foam::basicSymmetryFaPatchField<Type>::basicSymmetryFaPatchField
} }
template<class Type>
Foam::basicSymmetryFaPatchField<Type>::basicSymmetryFaPatchField
(
const basicSymmetryFaPatchField<Type>& ptf
)
:
transformFaPatchField<Type>(ptf)
{}
template<class Type> template<class Type>
Foam::basicSymmetryFaPatchField<Type>::basicSymmetryFaPatchField Foam::basicSymmetryFaPatchField<Type>::basicSymmetryFaPatchField
( (

View File

@ -38,8 +38,8 @@ SourceFiles
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef basicSymmetryFaPatchField_H #ifndef Foam_basicSymmetryFaPatchField_H
#define basicSymmetryFaPatchField_H #define Foam_basicSymmetryFaPatchField_H
#include "transformFaPatchField.H" #include "transformFaPatchField.H"
#include "symmetryFaPatch.H" #include "symmetryFaPatch.H"
@ -58,7 +58,6 @@ class basicSymmetryFaPatchField
: :
public transformFaPatchField<Type> public transformFaPatchField<Type>
{ {
public: public:
// Constructors // Constructors
@ -89,11 +88,11 @@ public:
const faPatchFieldMapper& const faPatchFieldMapper&
); );
//- Construct as copy //- Default copy construct
basicSymmetryFaPatchField basicSymmetryFaPatchField
( (
const basicSymmetryFaPatchField<Type>& const basicSymmetryFaPatchField<Type>&
); ) = default;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
basicSymmetryFaPatchField basicSymmetryFaPatchField

View File

@ -28,7 +28,6 @@ License
#include "basicSymmetryFvPatchField.H" #include "basicSymmetryFvPatchField.H"
#include "symmTransformField.H" #include "symmTransformField.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class Type> template<class Type>
@ -69,16 +68,6 @@ Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
} }
template<class Type>
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
(
const basicSymmetryFvPatchField<Type>& ptf
)
:
transformFvPatchField<Type>(ptf)
{}
template<class Type> template<class Type>
Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField Foam::basicSymmetryFvPatchField<Type>::basicSymmetryFvPatchField
( (

View File

@ -38,8 +38,8 @@ SourceFiles
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef basicSymmetryFvPatchField_H #ifndef Foam_basicSymmetryFvPatchField_H
#define basicSymmetryFvPatchField_H #define Foam_basicSymmetryFvPatchField_H
#include "transformFvPatchField.H" #include "transformFvPatchField.H"
#include "symmetryFvPatch.H" #include "symmetryFvPatch.H"
@ -88,11 +88,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct as copy //- Default copy construct
basicSymmetryFvPatchField basicSymmetryFvPatchField
( (
const basicSymmetryFvPatchField<Type>& const basicSymmetryFvPatchField<Type>&
); ) = default;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
basicSymmetryFvPatchField basicSymmetryFvPatchField