summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index badad5b09675..12e1a7afe86b 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -1086,28 +1086,28 @@ void LwpGroupLayout::XFConvertFrame(XFContentContainer* pCont, sal_Int32 nStart
{
if(m_pFrame)
{
- XFFrame* pXFFrame = nullptr;
+ rtl::Reference<XFFrame> xXFFrame;
if(nEnd < nStart)
{
- pXFFrame = new XFFrame();
+ xXFFrame.set(new XFFrame);
}
else
{
- pXFFrame = new XFFloatFrame(nStart, nEnd, bAll);
+ xXFFrame.set(new XFFloatFrame(nStart, nEnd, bAll));
}
- m_pFrame->Parse(pXFFrame, nStart);
+ m_pFrame->Parse(xXFFrame.get(), nStart);
//add child frame into group
LwpVirtualLayout* pLayout = dynamic_cast<LwpVirtualLayout*>(GetChildHead().obj().get());
while (pLayout && pLayout != this)
{
- pLayout->DoXFConvert(pXFFrame);
+ pLayout->DoXFConvert(xXFFrame.get());
pLayout = dynamic_cast<LwpVirtualLayout*>(pLayout->GetNext().obj().get());
}
- pCont ->Add(pXFFrame);
+ pCont->Add(xXFFrame.get());
}
}
cp-6.4-19&id=35e471bb4d1388cf5afcdcee214cf5111edf44e3'>Adapt the remaining OUString functions to std string_viewStephan Bergmann 2020-11-13tdf#123936 Formatting files in module helpcompiler with clang-formatPhilipp Hofer 2020-11-10tdf#42949 Fix new IWYU warnings in directories [h-r]*Gabor Kelemen