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

to return unchanged 'tmp' arguments
This commit is contained in:
Henry Weller 2016-05-23 12:03:19 +01:00
parent 8f75fa5d46
commit 3ec4370139

View file

@ -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);
}
}