diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 12:14:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-25 13:53:21 +0200 |
commit | 4583911575edf98ccd5b15af8eafa6a3a7b64034 (patch) | |
tree | f3f33e53c45dd870f19e7e42db9bb5b4bf1f23bf /writerfilter | |
parent | 1942182a3d1817bc539229d7fda3af69f7e295b8 (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 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 8 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 1e6a5a1e3f76..46f312eeeeaa 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2973,7 +2973,7 @@ void DomainMapper_Impl::ChainTextFrames() uno::Sequence<beans::PropertyValue> aGrabBag; uno::Reference<lang::XServiceInfo> xServiceInfo(xPropertySet, uno::UNO_QUERY); - TextFramesForChaining aChainStruct = TextFramesForChaining(); + TextFramesForChaining aChainStruct; OUString sShapeName; OUString sLinkChainName; @@ -3661,9 +3661,7 @@ void DomainMapper_Impl::handleAuthor } if (m_xTextFactory.is()) xFieldInterface = m_xTextFactory->createInstance(sServiceName); - uno::Reference<beans::XPropertySet> xFieldProperties = - uno::Reference< beans::XPropertySet >( xFieldInterface, - uno::UNO_QUERY_THROW); + uno::Reference<beans::XPropertySet> xFieldProperties( xFieldInterface, uno::UNO_QUERY_THROW); if( bIsCustomField ) { xFieldProperties->setPropertyValue( @@ -5466,7 +5464,7 @@ void DomainMapper_Impl::startOrEndPermissionRange(sal_Int32 permissinId) // add new bookmark const bool bAbsorb = !xCursor->isCollapsed(); - uno::Reference< text::XTextRange > xCurrent = uno::Reference< text::XTextRange >(xCursor, uno::UNO_QUERY_THROW); + uno::Reference< text::XTextRange > xCurrent(xCursor, uno::UNO_QUERY_THROW); xTextAppend->insertTextContent(xCurrent, xPerm, bAbsorb); } diff --git a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx index a9ce3995cec9..650b356e7141 100644 --- a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx +++ b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx @@ -63,8 +63,7 @@ void OOXMLBinaryObjectReference::resolve(BinaryObj & rHandler) if (! mbRead) read(); - writerfilter::Reference<Properties>::Pointer_t pRef = - writerfilter::Reference<Properties>::Pointer_t(); + writerfilter::Reference<Properties>::Pointer_t pRef; rHandler.data(reinterpret_cast<sal_uInt8 *>(mSequence.data()), mSequence.size(), pRef); |