summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-20 10:27:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-20 10:27:54 +0100
commita702b41c7746fc5e450438551b1badbf9ca0dda1 (patch)
treef3cfcc2e06faacbf9dae8713ebf33eaa0a34be21 /unoidl
parent5f98e35f81c887ff55edbdbe0d264215d9faa562 (diff)
This should ideally be consistency-checked in UnoidlProvider
...but is not, for performance reasons. Change-Id: I2518eb1f1a2f84cfd836c390a418a2fcb516b82c
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/unoidl-read.cxx11
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()));