# HG changeset patch # User Mario de Sousa # Date 1351243538 -3600 # Node ID 5760f1043ba4b6944c3ce01d451f90cfa4abfbc2 # Parent a010763dd4cb7904dca32a5f906cddcfab6cd129 Code formating only. diff -r a010763dd4cb -r 5760f1043ba4 absyntax_utils/get_datatype_info.cc --- a/absyntax_utils/get_datatype_info.cc Sat Oct 06 14:21:04 2012 +0200 +++ b/absyntax_utils/get_datatype_info.cc Fri Oct 26 10:25:38 2012 +0100 @@ -61,30 +61,21 @@ bool get_datatype_info_c::is_type_equal(symbol_c *first_type, symbol_c *second_type) { - if ((NULL == first_type) || (NULL == second_type)) - return false; - if (typeid(* first_type) == typeid(invalid_type_name_c)) - return false; - if (typeid(*second_type) == typeid(invalid_type_name_c)) - return false; + if ((NULL == first_type) || (NULL == second_type)) {return false;} + if (typeid(* first_type) == typeid(invalid_type_name_c)) {return false;} + if (typeid(*second_type) == typeid(invalid_type_name_c)) {return false;} - if (get_datatype_info_c::is_ANY_ELEMENTARY(first_type)) { - if (typeid(*first_type) == typeid(*second_type)) - return true; - } else /* ANY_DERIVED */ - return (first_type == second_type); - - return false; + if ((get_datatype_info_c::is_ANY_ELEMENTARY(first_type)) && + (typeid(*first_type) == typeid(*second_type))) {return true;} + /* ANY_DERIVED */ + return (first_type == second_type); } bool get_datatype_info_c::is_type_valid(symbol_c *type) { - if (NULL == type) - return false; - if (typeid(*type) == typeid(invalid_type_name_c)) - return false; - + if (NULL == type) {return false;} + if (typeid(*type) == typeid(invalid_type_name_c)) {return false;} return true; }