Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
glom
Commits
ebfe80f1
Unverified
Commit
ebfe80f1
authored
Jun 20, 2017
by
Murray Cumming
Browse files
Document::change_relationship_name(): Avoid a vector copy.
parent
9c081852
Changes
1
Hide whitespace changes
Inline
Side-by-side
glom/libglom/document/document.cc
View file @
ebfe80f1
...
...
@@ -1078,7 +1078,7 @@ void Document::change_relationship_name(const Glib::ustring& table_name, const G
const
auto
doctableinfo
=
get_table_info
(
table_name
);
if
(
doctableinfo
)
{
const
auto
relationships
=
doctableinfo
->
m_relationships
;
const
auto
&
relationships
=
doctableinfo
->
m_relationships
;
//Change the relationship name:
auto
iterRelFind
=
find_if_same_name
(
relationships
,
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment