summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-04 18:59:43 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-12-04 22:10:20 +0100
commit67c2a4786154a5c246998f119c3349e4d725e43b (patch)
tree57885eb692217e500373220564cbd1e3dff9c2e4 /oox
parent8472365774b7471e96a025f424a6c7eb7b02db26 (diff)
cid#1545597 Using invalid iterator
and : cid#1545537 Using invalid iterator cid#1545508 Using invalid iterator cid#1545494 Using invalid iterator cid#1545478 Using invalid iterator cid#1545427 Using invalid iterator cid#1545420 Using invalid iterator cid#1545400 Using invalid iterator cid#1545300 Using invalid iterator cid#1545258 Using invalid iterator cid#1545257 Using invalid iterator cid#1545200 Using invalid iterator cid#1545183 Using invalid iterator Change-Id: Ibf3a41902f34286967195c5c3b22e337a4b06809 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160322 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/texteffectscontext.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/drawingml/texteffectscontext.cxx b/oox/source/drawingml/texteffectscontext.cxx
index 347971f4616b..25df357f5a06 100644
--- a/oox/source/drawingml/texteffectscontext.cxx
+++ b/oox/source/drawingml/texteffectscontext.cxx
@@ -70,8 +70,9 @@ OUString const & lclGetNameForElementId(sal_uInt32 aId)
{ OOX_TOKEN(w14, stylisticSets), "stylisticSets" },
{ OOX_TOKEN(w14, cntxtAlts) , "cntxtAlts" },
};
-
- return aIdMap.find(aId)->second;
+ const auto iter = aIdMap.find(aId);
+ assert(iter != aIdMap.end());
+ return iter->second;
}
OUString const & lclGetGrabBagName(sal_uInt32 aId)