Kaydet (Commit) a702b41c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

This should ideally be consistency-checked in UnoidlProvider

...but is not, for performance reasons.

Change-Id: I2518eb1f1a2f84cfd836c390a418a2fcb516b82c
üst 5f98e35f
......@@ -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()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment