From a702b41c7746fc5e450438551b1badbf9ca0dda1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 20 Nov 2014 10:27:31 +0100 Subject: This should ideally be consistency-checked in UnoidlProvider ...but is not, for performance reasons. Change-Id: I2518eb1f1a2f84cfd836c390a418a2fcb516b82c --- unoidl/source/unoidl-read.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'unoidl') 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::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( k->second.entity.get())); -- cgit