]> sourceware.org Git - libabigail.git/commitdiff
Refactor d.context() as ctxt in report(enum_diff).
authorGiuliano Procida <gprocida@google.com>
Wed, 10 Jun 2020 11:59:32 +0000 (12:59 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 29 Jun 2020 08:30:21 +0000 (10:30 +0200)
* src/abg-default-reporter.cc (report): In the enum_diff
overload, introduce the name ctxt to replace four occurrences
of d.context().

Signed-off-by: Giuliano Procida <gprocida@google.com>
src/abg-default-reporter.cc

index 7c98d8d70de6cfc45f3779ce1458d5d18861da31..42851346b1fd3676a4dfaeef90bb91a425069508 100644 (file)
@@ -98,9 +98,10 @@ default_reporter::report(const enum_diff& d, ostream& out,
 
   enum_type_decl_sptr first = d.first_enum(), second = d.second_enum();
 
-  report_name_size_and_alignment_changes(first, second, d.context(),
+  const diff_context_sptr& ctxt = d.context();
+  report_name_size_and_alignment_changes(first, second, ctxt,
                                         out, indent);
-  maybe_report_diff_for_member(first, second, d.context(), out, indent);
+  maybe_report_diff_for_member(first, second, ctxt, out, indent);
 
   //underlying type
   d.underlying_type_diff()->report(out, indent);
@@ -165,12 +166,12 @@ default_reporter::report(const enum_diff& d, ostream& out,
              << "' from value '"
              << i->first.get_value() << "' to '"
              << i->second.get_value() << "'";
-         report_loc_info(second, *d.context(), out);
+         report_loc_info(second, *ctxt, out);
          out << "\n";
        }
     }
 
-  if (d.context()->show_leaf_changes_only())
+  if (ctxt->show_leaf_changes_only())
     maybe_report_interfaces_impacted_by_diff(&d, out, indent);
 
   d.reported_once(true);
This page took 0.033797 seconds and 5 git commands to generate.