summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unoidl/source/unoidl-check.cxx1
-rw-r--r--unoidl/source/unoidl-write.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx
index cfd691a2f2e9..b2d57766f968 100644
--- a/unoidl/source/unoidl-check.cxx
+++ b/unoidl/source/unoidl-check.cxx
@@ -106,6 +106,7 @@ bool getArgument(
if (delimiter == nullptr) {
badUsage();
}
+ assert(delimiter && "badUsage exits otherwise");
*delimiter = true;
return false;
}
diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx
index 39a16f6c116c..e04fa16473a5 100644
--- a/unoidl/source/unoidl-write.cxx
+++ b/unoidl/source/unoidl-write.cxx
@@ -62,6 +62,7 @@ OUString getArgumentUri(sal_uInt32 argument, bool * entities) {
if (entities == nullptr) {
badUsage();
}
+ assert(entities && "badUsage exits otherwise");
*entities = true;
} else if (entities != nullptr) {
*entities = false;