From f2ef995113d51757f9c0eaf16a9b472a8038076f Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Mon, 29 Oct 2018 15:08:52 +0000
Subject: [PATCH] ENH: checkMesh: pass by reference. See #755.

---
 .../utilities/mesh/manipulation/checkMesh/checkTools.C        | 4 ++--
 .../utilities/mesh/manipulation/checkMesh/checkTools.H        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C
index e230e03990e..cf981adb581 100644
--- a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C
+++ b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C
@@ -3,7 +3,7 @@
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
     \\  /    A nd           | Copyright (C) 2015-2017 OpenFOAM Foundation
-     \\/     M anipulation  | Copyright (C) 2015-2017 OpenCFD Ltd.
+     \\/     M anipulation  | Copyright (C) 2015-2018 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -209,7 +209,7 @@ void Foam::mergeAndWrite
     const polyMesh& mesh,
     const surfaceWriter& writer,
     const word& name,
-    const indirectPrimitivePatch setPatch,
+    const indirectPrimitivePatch& setPatch,
     const fileName& outputDir
 )
 {
diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTools.H b/applications/utilities/mesh/manipulation/checkMesh/checkTools.H
index 794fce5e42f..adb98089b5b 100644
--- a/applications/utilities/mesh/manipulation/checkMesh/checkTools.H
+++ b/applications/utilities/mesh/manipulation/checkMesh/checkTools.H
@@ -21,7 +21,7 @@ namespace Foam
         const polyMesh& mesh,
         const surfaceWriter& writer,
         const word& name,
-        const indirectPrimitivePatch setPatch,
+        const indirectPrimitivePatch& setPatch,
         const fileName& outputDir
     );
 
-- 
GitLab