diff --git a/src/postProcessing/functionObjects/field/pressure/pressure.C b/src/postProcessing/functionObjects/field/pressure/pressure.C index ebc6d8a3273e3025684cb1f89c7d8a9c7de4aba2..da8a32693111885c235c09885948e478e40ed46a 100644 --- a/src/postProcessing/functionObjects/field/pressure/pressure.C +++ b/src/postProcessing/functionObjects/field/pressure/pressure.C @@ -107,7 +107,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pRef } else { - return tmp<volScalarField>(tp.ptr()); + return std::move(tp); } } @@ -126,7 +126,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pDyn } else { - return tmp<volScalarField>(tp.ptr()); + return std::move(tp); } } @@ -154,7 +154,7 @@ Foam::functionObjects::pressure::coeff } else { - return tmp<volScalarField>(tp.ptr()); + return std::move(tp); } }