Skip to content
Snippets Groups Projects
Commit 2fd07c12 authored by Henry Weller's avatar Henry Weller
Browse files

functionObjects::pressure: Use the new 'tmp' 'move' constructor

to return unchanged 'tmp' arguments
parent 3565b549
Branches
Tags
No related merge requests found
...@@ -107,7 +107,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pRef ...@@ -107,7 +107,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pRef
} }
else else
{ {
return tmp<volScalarField>(tp.ptr()); return std::move(tp);
} }
} }
...@@ -126,7 +126,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pDyn ...@@ -126,7 +126,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::pDyn
} }
else else
{ {
return tmp<volScalarField>(tp.ptr()); return std::move(tp);
} }
} }
...@@ -154,7 +154,7 @@ Foam::functionObjects::pressure::coeff ...@@ -154,7 +154,7 @@ Foam::functionObjects::pressure::coeff
} }
else else
{ {
return tmp<volScalarField>(tp.ptr()); return std::move(tp);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment