From 14b306398463dbd4c1af511d38513eac05c3672f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Jun 2018 13:39:10 +0200 Subject: loplugin:useuniqueptr in LwpChangeMgr these should be held by rtl::Reference Change-Id: I135352dafc6ba0e274d344aec432fe4eabbafe97 Reviewed-on: https://gerrit.libreoffice.org/56333 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lotuswordpro/inc/lwpchangemgr.hxx | 2 +- lotuswordpro/source/filter/lwpchangemgr.cxx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/inc/lwpchangemgr.hxx b/lotuswordpro/inc/lwpchangemgr.hxx index 914c6af91df6..bbf00ba1ad49 100644 --- a/lotuswordpro/inc/lwpchangemgr.hxx +++ b/lotuswordpro/inc/lwpchangemgr.hxx @@ -85,7 +85,7 @@ private: std::map* m_pFribMap; std::map m_DocFribMap; std::map m_HeadFootFribMap; - std::vector m_ChangeList; + std::vector> m_ChangeList; sal_uInt32 m_nCounter; }; diff --git a/lotuswordpro/source/filter/lwpchangemgr.cxx b/lotuswordpro/source/filter/lwpchangemgr.cxx index 1c2816fceba2..9fbfc1906201 100644 --- a/lotuswordpro/source/filter/lwpchangemgr.cxx +++ b/lotuswordpro/source/filter/lwpchangemgr.cxx @@ -146,10 +146,6 @@ void LwpChangeMgr::ConvertAllChange(IXFStream* pStream) pStream->EndElement("text:tracked-changes"); - for (auto const& elem : m_ChangeList) - { - delete elem; - } m_ChangeList.clear(); } void LwpChangeMgr::SetHeadFootFribMap(bool bFlag) -- cgit