reporter-priv: Passing a string parm by reference

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>
This commit is contained in:
Dodji Seketeli
2022-06-21 12:51:18 +02:00
parent 0529e3b9ee
commit aa1576b2f3
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1387,7 +1387,7 @@ reporter_base::diff_to_be_reported(const diff *d) const
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();
+1 -2
View File
@@ -238,8 +238,7 @@ maybe_report_interfaces_impacted_by_diff(const diff_sptr &d,
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,