From 7458426111881fa166a9c138e40917e2c0e1a55f Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Mon, 9 Jul 2018 15:54:28 +1200 Subject: [PATCH] return by const ref --- include/xlnt/packaging/relationship.hpp | 2 +- source/packaging/relationship.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xlnt/packaging/relationship.hpp b/include/xlnt/packaging/relationship.hpp index 09e88ff2..2dcbb4af 100644 --- a/include/xlnt/packaging/relationship.hpp +++ b/include/xlnt/packaging/relationship.hpp @@ -115,7 +115,7 @@ public: /// /// Returns a string of the form rId# that identifies the relationship. /// - std::string id() const; + const std::string& id() const; /// /// Returns the type of this relationship. diff --git a/source/packaging/relationship.cpp b/source/packaging/relationship.cpp index 07f7bafa..9c104e08 100644 --- a/source/packaging/relationship.cpp +++ b/source/packaging/relationship.cpp @@ -36,7 +36,7 @@ relationship::relationship( { } -std::string relationship::id() const +const std::string& relationship::id() const { return id_; }