diff --git a/applications/utilities/slopeMesh/slopeMesh.C b/applications/utilities/slopeMesh/slopeMesh.C
index 8cfbceea2a560d6ed7313b067d934578f2aa59e4..fb9839475a30c4e5d5aaecaa05318d3ac5481db6 100644
--- a/applications/utilities/slopeMesh/slopeMesh.C
+++ b/applications/utilities/slopeMesh/slopeMesh.C
@@ -285,7 +285,6 @@ int main(int argc, char *argv[])
     maxZboundary=lf-cellCountX*cellCountY;
 
 
-
     for (int i=0; i<cellCountX; i++)
     {
         for (int j=0; j<cellCountY; j++)
@@ -302,7 +301,7 @@ int main(int argc, char *argv[])
 
 
 
-    word regionName  = polyMesh::defaultRegion;
+    word regionName = polyMesh::defaultRegion;
 
     polyMesh mesh
     (
@@ -312,9 +311,9 @@ int main(int argc, char *argv[])
             runTime.constant(),
             runTime
         ),
-        xferCopy(points),
-        xferCopy(faces),
-        xferCopy(cells)
+        std::move(points),
+        std::move(faces),
+        std::move(cells)
     );
 
     label start[6] = {minXboundary, maxXboundary,
@@ -331,24 +330,24 @@ int main(int argc, char *argv[])
 
     for (int i=0; i<6;i++)
     {
-        polyPatch *patch = new polyPatch(
-                        name[i],
-                        size[i],
-                        start[i],
-                        0,
-                        polyBoundaryMesh(
-                            IOobject
-                            (
-                                regionName,
-                                runTime.constant(),
-                                runTime
-                            ),
-                            mesh
-                            ),
-                        "test"
-                        );
-
-        patches[i] = patch;
+        patches[i] = new polyPatch
+        (
+            name[i],
+            size[i],
+            start[i],
+            0,
+            polyBoundaryMesh
+            (
+                IOobject
+                (
+                    regionName,
+                    runTime.constant(),
+                    runTime
+                ),
+                mesh
+            ),
+            "test"
+        );
     }
 
     mesh.addPatches(patches);