From 3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Jan 2020 13:22:32 +0200 Subject: loplugin:makeshared in svgio..writerperfect Change-Id: I0f8de0f78c7a8fb78d47ee5dfed09019b4eb5288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87357 Tested-by: Jenkins Reviewed-by: Noel Grandin --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx') diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 8bd50d702c98..bb491e363ae9 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -321,7 +321,7 @@ RTFDocumentImpl::RTFDocumentImpl(uno::Reference const& x if (xDocumentPropertiesSupplier.is()) m_xDocumentProperties = xDocumentPropertiesSupplier->getDocumentProperties(); - m_pGraphicHelper.reset(new oox::GraphicHelper(m_xContext, xFrame, oox::StorageRef())); + m_pGraphicHelper = std::make_shared(m_xContext, xFrame, oox::StorageRef()); m_pTokenizer = new RTFTokenizer(*this, m_pInStream.get(), m_xStatusIndicator); m_pSdrImport = new RTFSdrImport(*this, m_xDstDoc); @@ -1169,7 +1169,7 @@ RTFError RTFDocumentImpl::resolveChars(char ch) { if (m_aStates.top().getInternalState() == RTFInternalState::BIN) { - m_pBinaryData.reset(new SvMemoryStream()); + m_pBinaryData = std::make_shared(); m_pBinaryData->WriteChar(ch); for (int i = 0; i < m_aStates.top().getBinaryToRead() - 1; ++i) { -- cgit v1.2.3