diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 09:31:09 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-15 09:32:41 +0100 |
commit | b82b9a93caaf27855d6059885de29d1989a1907d (patch) | |
tree | 7de0987a0736e95e1fac06762d24bb2063063c7d /oox/source | |
parent | 4b939e617819e13fa754d4997f1dacdbbe3f1cf9 (diff) |
Some cppcheck cleaning
Change-Id: I73b5eb0f12f0e9fcc4b691fadca17cd97e5fd079
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/vml/vmlshapecontainer.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/oox/source/vml/vmlshapecontainer.cxx b/oox/source/vml/vmlshapecontainer.cxx index 31ad4cc90a08..6b999bdb523f 100644 --- a/oox/source/vml/vmlshapecontainer.cxx +++ b/oox/source/vml/vmlshapecontainer.cxx @@ -46,8 +46,11 @@ void lclMapShapesById( RefMap< OUString, ShapeType >& orMap, const RefVector< Sh OSL_ENSURE( !rShapeId.isEmpty(), "lclMapShapesById - missing shape identifier" ); if( !rShapeId.isEmpty() ) { - OSL_ENSURE( orMap.find( rShapeId ) == orMap.end(), "lclMapShapesById - shape identifier already used" ); - orMap[ rShapeId ] = *aIt; + OSL_ENSURE( orMap.find( rShapeId ) == orMap.end(), "lclMapShapesById - shape identifier already used JUL" ); + if (orMap.find( rShapeId ) == orMap.end()) + { + orMap[ rShapeId ] = *aIt; + } } } } |