]> sourceware.org Git - libabigail.git/commitdiff
reporter-priv: Passing a string parm by reference
authorDodji Seketeli <dodji@redhat.com>
Tue, 21 Jun 2022 10:51:18 +0000 (12:51 +0200)
committerDodji Seketeli <dodji@redhat.com>
Tue, 21 Jun 2022 10:54:33 +0000 (12:54 +0200)
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>
src/abg-reporter-priv.cc
src/abg-reporter-priv.h

index 06145a1b737e28ceb92e10c0cb972369339e0f2d..f41f0ca65b189f7695289965505a712bf3687605 100644 (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();
 
index 42425ef2c52b4fad4d165f0a837b8e7f70aa054f..d8a9640a7709e809c9d0a7d04ffc73e85fad58d8 100644 (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,
This page took 0.033951 seconds and 5 git commands to generate.