diff options
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r-- | unoidl/source/unoidl-read.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index 32bd012d8bac..93bbc1907075 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -243,8 +243,6 @@ void scanMap( ->isPublished()))))) .first); switch (ent->getSort()) { - case unoidl::Entity::SORT_MODULE: - assert(false && "this cannot happen"); case unoidl::Entity::SORT_ENUM_TYPE: case unoidl::Entity::SORT_CONSTANT_GROUP: break; @@ -365,6 +363,8 @@ void scanMap( insertEntityDependency(manager, i, ent2->getBase()); break; } + case unoidl::Entity::SORT_MODULE: + assert(false && "this cannot happen"); } } } @@ -575,9 +575,6 @@ void writeEntity( rtl::Reference<unoidl::PublishableEntity> ent( static_cast<unoidl::PublishableEntity *>(i->second.entity.get())); switch (ent->getSort()) { - case unoidl::Entity::SORT_MODULE: - assert(false && "this cannot happen"); - //deliberate fall-through anyway case unoidl::Entity::SORT_ENUM_TYPE: { rtl::Reference<unoidl::EnumTypeEntity> ent2( @@ -1010,6 +1007,8 @@ void writeEntity( std::cout << "; };"; break; } + case unoidl::Entity::SORT_MODULE: + assert(false && "this cannot happen"); } } } |