Kaydet (Commit) 14b30639 authored tarafından Noel Grandin's avatar Noel Grandin

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: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 99d5312a
......@@ -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;
};
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment