While looking at something else, I noticed the
maybe_report_data_members_replaced_by_anon_dm function was passing a
string parameter by value. Pass this by reference.
* src/abg-reporter-priv.h
(maybe_report_data_members_replaced_by_anon_dm): Pass the string parm by ...
* src/abg-reporter-priv.cc
(maybe_report_data_members_replaced_by_anon_dm): ... reference.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
void
maybe_report_data_members_replaced_by_anon_dm(const class_or_union_diff &d,
ostream &out,
- const string indent)
+ const string &indent)
{
const diff_context_sptr& ctxt = d.context();
void
maybe_report_data_members_replaced_by_anon_dm(const class_or_union_diff &d,
ostream &out,
- const string indent);
-
+ const string &indent);
void
maybe_report_base_class_reordering(const class_diff &d,