diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpcharacterstyle.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpcharacterstyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpcharacterstyle.cxx b/lotuswordpro/source/filter/lwpcharacterstyle.cxx index febc7585f7c4..5e3c7cdba25b 100644 --- a/lotuswordpro/source/filter/lwpcharacterstyle.cxx +++ b/lotuswordpro/source/filter/lwpcharacterstyle.cxx @@ -145,7 +145,7 @@ void LwpTextStyle::RegisterStyle() return; } - XFTextStyle* pStyle = new XFTextStyle(); + std::unique_ptr<XFTextStyle> pStyle(new XFTextStyle()); //Set name OUString styleName = GetName().str(); @@ -160,7 +160,7 @@ void LwpTextStyle::RegisterStyle() //Add style LwpStyleManager* pStyleMgr = m_pFoundry->GetStyleManager(); - pStyleMgr->AddStyle(GetObjectID(), pStyle); + pStyleMgr->AddStyle(GetObjectID(), std::move(pStyle)); } |