diff options
-rw-r--r-- | unoidl/source/unoidl-read.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index e301ba5654c1..99a202437d20 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -606,9 +606,14 @@ void writeEntity( std::map<OUString, Entity>::iterator k(entities.find(*j)); if (k != entities.end() && !k->second.written) { OUString id(openModulesFor(modules, *j)); - assert( - k->second.entity->getSort() - == unoidl::Entity::SORT_INTERFACE_TYPE); + if (k->second.entity->getSort() + != unoidl::Entity::SORT_INTERFACE_TYPE) + { + std::cerr + << "Entity " << *j << " should be an interface type" + << std::endl; + std::exit(EXIT_FAILURE); + } writePublished( static_cast<unoidl::PublishableEntity *>( k->second.entity.get())); |