From f4bf7b006c2f970dbae72626d96ffd037b34ef70 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 10 Mar 2010 06:43:17 +0000 Subject: [PATCH] - const SMDS_MeshFace *FindFace(std::vector nodes_ids) const; + const SMDS_MeshFace *FindFace(const std::vector& nodes_ids) const; - static const SMDS_MeshFace* FindFace(std::vector nodes); + static const SMDS_MeshFace* FindFace(const std::vector& nodes); --- src/SMDS/SMDS_Mesh.cxx | 4 ++-- src/SMDS/SMDS_Mesh.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index 0f3ea745b..a50532de6 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -1763,7 +1763,7 @@ const SMDS_MeshElement* SMDS_Mesh::FindElement(int IDelem) const //purpose : find polygon //======================================================================= -const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector nodes_ids) const +const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector& nodes_ids) const { int nbnodes = nodes_ids.size(); std::vector poly_nodes (nbnodes); @@ -1775,7 +1775,7 @@ const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector nodes_ids) const return FindFace(poly_nodes); } -const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector nodes) +const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector& nodes) { if ( nodes.size() > 2 && nodes[0] ) { SMDS_ElemIteratorPtr itF = nodes[0]->GetInverseElementIterator(SMDSAbs_Face); diff --git a/src/SMDS/SMDS_Mesh.hxx b/src/SMDS/SMDS_Mesh.hxx index b09081ed9..0da9824c9 100644 --- a/src/SMDS/SMDS_Mesh.hxx +++ b/src/SMDS/SMDS_Mesh.hxx @@ -490,8 +490,8 @@ public: const SMDS_MeshNode *n7, const SMDS_MeshNode *n8); - const SMDS_MeshFace *FindFace(std::vector nodes_ids) const; - static const SMDS_MeshFace* FindFace(std::vector nodes); + const SMDS_MeshFace *FindFace(const std::vector& nodes_ids) const; + static const SMDS_MeshFace* FindFace(const std::vector& nodes); /*! * \brief Raise an exception if free memory (ram+swap) too low -- 2.39.2