functionObjects::pressure: Use the new 'tmp' 'move' constructor
to return unchanged 'tmp' arguments
This commit is contained in:
parent
8f75fa5d46
commit
3ec4370139
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue