diff options
Diffstat (limited to 'codemaker/source/cppumaker/cpputype.cxx')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 722846b0efa6..4b3face0c702 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -736,9 +736,7 @@ OUString CppuType::getTypeClass(OUString const & name, bool cStyle) ? OUString("typelib_TypeClass_INTERFACE") : OUString("::css::uno::TypeClass_INTERFACE"); case codemaker::UnoType::Sort::Typedef: - return getTypeClass( - dynamic_cast<unoidl::TypedefEntity&>(*ent.get()).getType(), - cStyle); + return getTypeClass(dynamic_cast<unoidl::TypedefEntity&>(*ent).getType(), cStyle); default: for (;;) { std::abort(); @@ -988,7 +986,7 @@ OUString CppuType::resolveOuterTypedefs(OUString const & name) const if (m_typeMgr->getSort(n, &ent) != codemaker::UnoType::Sort::Typedef) { return n; } - n = dynamic_cast<unoidl::TypedefEntity&>(*ent.get()).getType(); + n = dynamic_cast<unoidl::TypedefEntity&>(*ent).getType(); } } @@ -1002,11 +1000,8 @@ OUString CppuType::resolveAllTypedefs(OUString const & name) const break; } sal_Int32 k2; - n = b2u( - codemaker::UnoType::decompose( - u2b(dynamic_cast<unoidl::TypedefEntity&>(*ent.get()). - getType()), - &k2)); + n = b2u(codemaker::UnoType::decompose( + u2b(dynamic_cast<unoidl::TypedefEntity&>(*ent).getType()), &k2)); k1 += k2; //TODO: overflow } OUStringBuffer b; @@ -3138,8 +3133,7 @@ sal_uInt32 ExceptionType::getTotalMemberCount(OUString const & base) const throw CannotDumpException( "exception type base " + base + " is not an exception type"); } - unoidl::ExceptionTypeEntity& ent2( - dynamic_cast< unoidl::ExceptionTypeEntity&>(*ent.get())); + unoidl::ExceptionTypeEntity& ent2(dynamic_cast<unoidl::ExceptionTypeEntity&>(*ent)); return getTotalMemberCount(ent2.getDirectBase()) + ent2.getDirectMembers().size(); //TODO: overflow } |