return by const ref

This commit is contained in:
Crzyrndm 2018-07-09 15:54:28 +12:00
parent ec02121c15
commit 7458426111
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public:
/// <summary>
/// Returns a string of the form rId# that identifies the relationship.
/// </summary>
std::string id() const;
const std::string& id() const;
/// <summary>
/// Returns the type of this relationship.

View File

@ -36,7 +36,7 @@ relationship::relationship(
{
}
std::string relationship::id() const
const std::string& relationship::id() const
{
return id_;
}