summaryrefslogtreecommitdiff
path: root/unoidl/source/unoidl-write.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoidl/source/unoidl-write.cxx')
-rw-r--r--unoidl/source/unoidl-write.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx
index 827e9ad0a4db..1626dbe19ea5 100644
--- a/unoidl/source/unoidl-write.cxx
+++ b/unoidl/source/unoidl-write.cxx
@@ -731,10 +731,8 @@ sal_uInt64 writeMap(
bool dfltCtor = ent2->getConstructors().size() == 1
&& ent2->getConstructors()[0].defaultConstructor;
bool ann = !ent2->getAnnotations().empty();
- if (!dfltCtor) {
- if (!ann)
- ann = hasNotEmptyAnnotations(ent2->getConstructors());
- }
+ if (!dfltCtor && !ann)
+ ann = hasNotEmptyAnnotations(ent2->getConstructors());
i.second.dataOffset = getOffset(file);
writeKind(file, ent2.get(), ann, dfltCtor);
writeIdxName(file, ent2->getBase());