From 05ca49b4e7c9127b0a6e00cf4e57d26730369881 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 28 Aug 2012 12:02:25 +0200 Subject: [PATCH] made return type of getNodes() and getElements() const& instead of const --- MeshLib/Mesh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/Mesh.h b/MeshLib/Mesh.h index 255ff38411e..dee3618aa3f 100644 --- a/MeshLib/Mesh.h +++ b/MeshLib/Mesh.h @@ -72,10 +72,10 @@ public: const std::string getName() const { return _name; }; /// Get the nodes-vector for the mesh. - const std::vector<Node*> getNodes() const { return _nodes; }; + std::vector<Node*> const& getNodes() const { return _nodes; }; /// Get the element-vector for the mesh. - const std::vector<Element*> getElements() const { return _elements; }; + std::vector<Element*> const& getElements() const { return _elements; }; /// Resets the IDs of all mesh-nodes to their position in the node vector void resetNodeIDs(); -- GitLab