Misc style fixes in abg-ir.cc
authorDodji Seketeli <dodji@redhat.com>
Mon, 31 Oct 2016 17:29:41 +0000 (18:29 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 3 Nov 2016 14:13:10 +0000 (15:13 +0100)
* src/abg-ir.cc (get_function_type_name,
          get_pretty_representation): Misc style fixes.

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

index 99b42ea81ffd3395d4ab8a11d2de1c94389c0d72..e16a409feefec119bac42cc3bb862dea8c23cdf2 100644 (file)
@@ -5108,7 +5108,7 @@ get_function_type_name(const function_type& fn_type,
                       bool internal)
 {
   std::ostringstream o;
-  type_base_sptr return_type= fn_type.get_return_type();
+  type_base_sptr return_type = fn_type.get_return_type();
   const environment* env = fn_type.get_environment();
   assert(env);
 
@@ -5222,11 +5222,9 @@ get_pretty_representation(const type_or_decl_base* tod, bool internal)
 {
   string result;
 
-  if (type_base* t =
-      dynamic_cast<type_base*>(const_cast<type_or_decl_base*>(tod)))
+  if (type_base* t = is_type(const_cast<type_or_decl_base*>(tod)))
     result = get_pretty_representation(t, internal);
-  else if (decl_base* d =
-          dynamic_cast<decl_base*>(const_cast<type_or_decl_base*>(tod)))
+  else if (decl_base* d = is_decl(const_cast<type_or_decl_base*>(tod)))
     result =  get_pretty_representation(d, internal);
   else
     // We should never reach this point