diff options
Diffstat (limited to 'codemaker/source/cppumaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index 31361928fba8..a32e8dd1d0ca 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -527,9 +527,8 @@ void CppuType::dumpInitializer( out << "0"; break; case codemaker::UnoType::Sort::Enum: - assert(dynamic_cast<unoidl::EnumTypeEntity*>(ent.get())); out << codemaker::cpp::scopedCppName(n.toUtf8()) << "_" - << (static_cast<unoidl::EnumTypeEntity*>(ent.get())-> + << (dynamic_cast<unoidl::EnumTypeEntity&>(*ent.get()). getMembers()[0].name); break; case codemaker::UnoType::Sort::String: |