From: eap Date: Wed, 10 Mar 2010 06:43:17 +0000 (+0000) Subject: - const SMDS_MeshFace *FindFace(std::vector nodes_ids) const; X-Git-Tag: V5_1_4a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4bf7b006c2f970dbae72626d96ffd037b34ef70;p=modules%2Fsmesh.git - 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); --- 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