Some light style change in abidiff.cc
authorDodji Seketeli <dodji@redhat.com>
Thu, 8 Nov 2018 08:10:58 +0000 (09:10 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 8 Nov 2018 17:15:28 +0000 (18:15 +0100)
* tools/abidiff.cc (adjust_diff_context_for_kmidiff): Take a
reference to diff_context rather than a pointer.
(main): Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abidiff.cc

index a7cdeb0846f9c65caf86569c337e19faa2da1790..d0012f41e1ecc3050f1ea9d90cd3439765fccce9 100644 (file)
@@ -808,12 +808,12 @@ set_corpus_keep_drop_regex_patterns(options& opts, corpus_sptr c)
 ///
 /// @param ctxt the diff context to consider.
 static void
-adjust_diff_context_for_kmidiff(diff_context_sptr &ctxt)
+adjust_diff_context_for_kmidiff(diff_context &ctxt)
 {
-  ctxt->show_linkage_names(false);
-  ctxt->show_added_fns(false);
-  ctxt->show_added_vars(false);
-  ctxt->show_added_symbols_unreferenced_by_debug_info
+  ctxt.show_linkage_names(false);
+  ctxt.show_added_fns(false);
+  ctxt.show_added_vars(false);
+  ctxt.show_added_symbols_unreferenced_by_debug_info
     (false);
 }
 
@@ -1250,7 +1250,7 @@ main(int argc, char* argv[])
              return abigail::tools_utils::ABIDIFF_OK;
            }
 
-         adjust_diff_context_for_kmidiff(ctxt);
+         adjust_diff_context_for_kmidiff(*ctxt);
          corpus_diff_sptr diff = compute_diff(g1, g2, ctxt);
 
          if (diff->has_net_changes())