From 2fd07c12523d139e8802a5f8ebcad3a4d2900836 Mon Sep 17 00:00:00 2001
From: Henry Weller <http://cfd.direct>
Date: Mon, 23 May 2016 12:03:19 +0100
Subject: [PATCH] functionObjects::pressure: Use the new 'tmp' 'move'
 constructor to return unchanged 'tmp' arguments

---
 .../functionObjects/field/pressure/pressure.C               | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/postProcessing/functionObjects/field/pressure/pressure.C b/src/postProcessing/functionObjects/field/pressure/pressure.C
index ebc6d8a3273..da8a3269311 100644
--- a/src/postProcessing/functionObjects/field/pressure/pressure.C
+++ b/src/postProcessing/functionObjects/field/pressure/pressure.C
@@ -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);
     }
 }
 
-- 
GitLab