summaryrefslogtreecommitdiff
path: root/writerfilter/source/dmapper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-14 09:41:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-14 14:51:58 +0100
commitbcca21c44d22315af579cad6a404fea43de31bc9 (patch)
tree03f4b0009c71febadfbd17837ca823b962c923f1 /writerfilter/source/dmapper
parent32aae380b02de10a433e633186de7fcb85511530 (diff)
cid#1470700 try to help coverity see 'Using invalid iterator' is false
Change-Id: I04f3d2779db32cc5ca3d6303d146d017aa4f5ef4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109265 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'writerfilter/source/dmapper')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 59f856801c05..f41f03a09a41 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1742,6 +1742,7 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap, con
OUString aPreviousNumberingName;
if (isNumberingViaRule)
{
+ assert(itNumberingRules != aProperties.end() && "by definition itNumberingRules is valid if isNumberingViaRule is true");
uno::Reference<container::XNamed> xCurrentNumberingRules(itNumberingRules->Value, uno::UNO_QUERY);
if (xCurrentNumberingRules.is())
aCurrentNumberingName = xCurrentNumberingRules->getName();