diff options
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 858f8ea22c0b..c6da43589aee 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -576,18 +576,18 @@ void LwpCellLayout::RegisterStyle() } // register cell style - XFCellStyle *pCellStyle = new XFCellStyle(); + std::unique_ptr<XFCellStyle> xCellStyle(new XFCellStyle); - ApplyPadding(pCellStyle); - ApplyBackGround(pCellStyle); - ApplyWatermark(pCellStyle); - ApplyFmtStyle(pCellStyle); - ApplyBorders(pCellStyle); + ApplyPadding(xCellStyle.get()); + ApplyBackGround(xCellStyle.get()); + ApplyWatermark(xCellStyle.get()); + ApplyFmtStyle(xCellStyle.get()); + ApplyBorders(xCellStyle.get()); - pCellStyle->SetAlignType(enumXFAlignNone, GetVerticalAlignmentType()); + xCellStyle->SetAlignType(enumXFAlignNone, GetVerticalAlignmentType()); XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager(); - m_StyleName = pXFStyleManager->AddStyle(pCellStyle).m_pStyle->GetStyleName(); + m_StyleName = pXFStyleManager->AddStyle(xCellStyle.release()).m_pStyle->GetStyleName(); // content object register styles rtl::Reference<LwpObject> pObj = m_Content.obj(); |