summaryrefslogtreecommitdiffstats
path: root/xmloff/source/draw/shapeimport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/shapeimport.cxx')
-rw-r--r--xmloff/source/draw/shapeimport.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index 2a670787c57b..4522e18e0643 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -167,11 +167,8 @@ XMLShapeImportHelper::XMLShapeImportHelper(
// construct PresPagePropsMapper
xMapper = new XMLPropertySetMapper((XMLPropertyMapEntry*)aXMLSDPresPageProps, mpSdPropHdlFactory, false);
mpPresPagePropsMapper = new SvXMLImportPropertyMapper( xMapper, rImporter );
- if(mpPresPagePropsMapper)
- {
- // set lock to avoid deletion
- mpPresPagePropsMapper->acquire();
- }
+ // set lock to avoid deletion
+ mpPresPagePropsMapper->acquire();
uno::Reference< lang::XServiceInfo > xInfo( rImporter.GetModel(), uno::UNO_QUERY );
const OUString aSName( "com.sun.star.presentation.PresentationDocument" );