Commit 9c081852 authored by Murray Cumming's avatar Murray Cumming

Document::remove_relationship(): Remove from the vector, not a copy.

This was probably a regression since converting to use of auto with
C++11.
parent e496d308
......@@ -658,7 +658,8 @@ void Document::remove_relationship(const std::shared_ptr<const Relationship>& re
const auto relationship_name = glom_get_sharedptr_name(relationship);
//Find the relationship and remove it:
auto relationships = info->m_relationships;
auto& relationships = info->m_relationships;
auto iterRel = find_if_same_name(relationships, relationship_name);
if(iterRel != relationships.end())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment