summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-22 13:39:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-25 09:13:04 +0200
commit14b306398463dbd4c1af511d38513eac05c3672f (patch)
tree20407c1ec8520df0bd78297e983cf66a30b49c3e /lotuswordpro
parent99d5312a56a4c12301f9c235b4d51b8a5cec3d71 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/inc/lwpchangemgr.hxx2
-rw-r--r--lotuswordpro/source/filter/lwpchangemgr.cxx4
2 files changed, 1 insertions, 5 deletions
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<LwpFrib*,OUString>* m_pFribMap;
std::map<LwpFrib*,OUString> m_DocFribMap;
std::map<LwpFrib*,OUString> m_HeadFootFribMap;
- std::vector<XFChangeRegion*> m_ChangeList;
+ std::vector<rtl::Reference<XFChangeRegion>> 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)