summaryrefslogtreecommitdiff
path: root/unoidl/source/unoidl-read.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 17:44:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-27 08:55:56 +0100
commit7af733d9ef65fddd12ef5fae82808ba2f7f608df (patch)
tree360afc7f8c5b7963730885255f631c9896f683b4 /unoidl/source/unoidl-read.cxx
parent05f5c4d4d6addf5321a40595f598e55dce376f6f (diff)
tweak assert so comment appears in abort message
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r--unoidl/source/unoidl-read.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx
index 1deb4d75f376..ea995d68fc8c 100644
--- a/unoidl/source/unoidl-read.cxx
+++ b/unoidl/source/unoidl-read.cxx
@@ -248,7 +248,7 @@ void scanMap(
.first);
switch (ent->getSort()) {
case unoidl::Entity::SORT_MODULE:
- assert(false); // this cannot happen
+ assert(false && "this cannot happen");
case unoidl::Entity::SORT_ENUM_TYPE:
case unoidl::Entity::SORT_CONSTANT_GROUP:
break;
@@ -609,7 +609,7 @@ void writeEntity(
static_cast<unoidl::PublishableEntity *>(i->second.entity.get()));
switch (ent->getSort()) {
case unoidl::Entity::SORT_MODULE:
- assert(false); // this cannot happen
+ assert(false && "this cannot happen");
case unoidl::Entity::SORT_ENUM_TYPE:
{
rtl::Reference<unoidl::EnumTypeEntity> ent2(