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
......@@ -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);
}
}
......
Markdown is supported
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