From: Dodji Seketeli Date: Mon, 31 Oct 2016 17:29:41 +0000 (+0100) Subject: Misc style fixes in abg-ir.cc X-Git-Tag: libabigail-1.0.rc6~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bc96d17e134ce2182a6c326e16ee371d174db39;p=platform%2Fupstream%2Flibabigail.git Misc style fixes in abg-ir.cc * src/abg-ir.cc (get_function_type_name, get_pretty_representation): Misc style fixes. Signed-off-by: Dodji Seketeli --- diff --git a/src/abg-ir.cc b/src/abg-ir.cc index 99b42ea8..e16a409f 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -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(const_cast(tod))) + if (type_base* t = is_type(const_cast(tod))) result = get_pretty_representation(t, internal); - else if (decl_base* d = - dynamic_cast(const_cast(tod))) + else if (decl_base* d = is_decl(const_cast(tod))) result = get_pretty_representation(d, internal); else // We should never reach this point