diff options
Diffstat (limited to 'xmloff/source/draw/XMLImageMapContext.cxx')
-rw-r--r-- | xmloff/source/draw/XMLImageMapContext.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmloff/source/draw/XMLImageMapContext.cxx b/xmloff/source/draw/XMLImageMapContext.cxx index e3a16c08636c..069d5025dea0 100644 --- a/xmloff/source/draw/XMLImageMapContext.cxx +++ b/xmloff/source/draw/XMLImageMapContext.cxx @@ -120,12 +120,8 @@ XMLImageMapObjectContext::XMLImageMapObjectContext( Reference<XInterface> xIfc = xFactory->createInstance( OUString::createFromAscii(pServiceName)); DBG_ASSERT(xIfc.is(), "can't create image map object!"); - if( xIfc.is() ) - { - Reference<XPropertySet> xPropertySet( xIfc, UNO_QUERY ); - - xMapEntry = xPropertySet; - } + if (xIfc.is()) + xMapEntry.set(xIfc, UNO_QUERY); // else: can't create service -> ignore // else: can't even get factory -> ignore } |