]> sourceware.org Git - libabigail.git/commitdiff
Style fix
authorDodji Seketeli <dodji@redhat.com>
Fri, 26 Dec 2014 17:26:30 +0000 (18:26 +0100)
committerDodji Seketeli <dodji@redhat.com>
Fri, 26 Dec 2014 17:42:20 +0000 (18:42 +0100)
Make reference_type_def::get_pointed_to_type() return a type_base_sptr
rather than a shared_ptr<type_base>.

* src/abg-ir.cc (reference_type_def::get_pointed_to_type): Return
a type_base_sptr.
* src/abg-comparison.cc (diff::is_filtered_out): Fix a comment.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-comparison.cc
src/abg-ir.cc

index 5d670e15422ad516cc7a6752c18a0185cff60f5f..eee6cd2bc32665b30831305c6b13b726cc2c471b 100644 (file)
@@ -3057,7 +3057,8 @@ diff::is_filtered_out() const
   if (get_category() & SUPPRESSED_CATEGORY)
     return true;
 
-  // We don't want to display redundant function or variable diff
+  // We don't want to display redundant top-level function or variable
+  // diff nodes, when the user asked to avoid seeing redundant diff
   // nodes.
   if ((dynamic_cast<const function_decl_diff*>(this)
        || (dynamic_cast<const var_diff*>(this)
index 6f7597e2beac8545bbd3d7a9bf91bb7f6df7c4f4..198133dba251256e30492bc56eac28e7fe99c673 100644 (file)
@@ -4361,7 +4361,7 @@ reference_type_def::operator==(const type_base& o) const
   return *this == *other;
 }
 
-shared_ptr<type_base>
+type_base_sptr
 reference_type_def::get_pointed_to_type() const
 {
   if (pointed_to_type_.expired())
This page took 0.053956 seconds and 5 git commands to generate.