summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltexti.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-06-21 12:14:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-06-25 13:53:21 +0200
commit4583911575edf98ccd5b15af8eafa6a3a7b64034 (patch)
treef3f33e53c45dd870f19e7e42db9bb5b4bf1f23bf /sw/source/filter/xml/xmltexti.cxx
parent1942182a3d1817bc539229d7fda3af69f7e295b8 (diff)
improve loplugin:simplifyconstruct
Change-Id: If863d28c6db470faa0d22273020888d4219e069e Reviewed-on: https://gerrit.libreoffice.org/74559 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmltexti.cxx')
-rw-r--r--sw/source/filter/xml/xmltexti.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index 1b41ef693097..71a35ddbcc8b 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -279,8 +279,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertOLEObject(
uno::Sequence<beans::PropertyValue> aObjArgs( comphelper::InitPropertySequence({
{ "DefaultParentBaseURL", Any(GetXMLImport().GetBaseURL()) }
}));
- uno::Reference < embed::XEmbeddedObject > xObj =
- uno::Reference < embed::XEmbeddedObject >( xFactory->createInstanceInitNew(
+ uno::Reference < embed::XEmbeddedObject > xObj( xFactory->createInstanceInitNew(
aClass, OUString(), xStorage, "DummyName", aObjArgs), uno::UNO_QUERY );
if ( xObj.is() )
{
@@ -709,8 +708,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertPlugin(
// create object with desired ClassId
uno::Sequence < sal_Int8 > aClass( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence() );
uno::Reference < embed::XEmbeddedObjectCreator > xFactory = embed::EmbeddedObjectCreator::create( ::comphelper::getProcessComponentContext() );
- uno::Reference < embed::XEmbeddedObject > xObj =
- uno::Reference < embed::XEmbeddedObject >( xFactory->createInstanceInitNew(
+ uno::Reference < embed::XEmbeddedObject > xObj( xFactory->createInstanceInitNew(
aClass, OUString(), xStorage, "DummyName",
uno::Sequence < beans::PropertyValue >() ), uno::UNO_QUERY );
@@ -841,8 +839,7 @@ uno::Reference< XPropertySet > SwXMLTextImportHelper::createAndInsertFloatingFra
// create object with desired ClassId
uno::Sequence < sal_Int8 > aClass( SvGlobalName( SO3_IFRAME_CLASSID ).GetByteSequence() );
uno::Reference < embed::XEmbeddedObjectCreator > xFactory = embed::EmbeddedObjectCreator::create( ::comphelper::getProcessComponentContext() );
- uno::Reference < embed::XEmbeddedObject > xObj =
- uno::Reference < embed::XEmbeddedObject >( xFactory->createInstanceInitNew(
+ uno::Reference < embed::XEmbeddedObject > xObj( xFactory->createInstanceInitNew(
aClass, OUString(), xStorage, "DummyName",
uno::Sequence < beans::PropertyValue >() ), uno::UNO_QUERY );