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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment