[Libreoffice-commits] core.git: unoidl/source
Stephan Bergmann
sbergman at redhat.com
Thu Nov 20 01:28:20 PST 2014
unoidl/source/unoidl-read.cxx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
New commits:
commit a702b41c7746fc5e450438551b1badbf9ca0dda1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Nov 20 10:27:31 2014 +0100
This should ideally be consistency-checked in UnoidlProvider
...but is not, for performance reasons.
Change-Id: I2518eb1f1a2f84cfd836c390a418a2fcb516b82c
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx
index e301ba5..99a2024 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()));
More information about the Libreoffice-commits
mailing list