[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 4 08:49:05 UTC 2020
lotuswordpro/source/filter/lwprowlayout.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 852f469ba97caf01641b654f2e37dd9a290a6bce
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Feb 3 21:14:18 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Feb 4 09:48:31 2020 +0100
ofz#20507 hold by reference
Change-Id: Ia684d8f796ed7bf6f82b056c6445c4cd92260504
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87923
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx
index 9760dd7a5e24..7a564bdd5849 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -225,9 +225,9 @@ void LwpRowLayout::ConvertRow(rtl::Reference<XFTable> const & pXFTable,sal_uInt8
{
xXFCell.set(new XFCell);
xXFCell->SetColumnSpaned(nColMark-i);
- XFTable* pSubTable = new XFTable;
- pTableLayout->ConvertTable(pSubTable,crowid,nRowMark,i,nColMark);
- xXFCell->Add(pSubTable);
+ rtl::Reference<XFTable> xSubTable(new XFTable);
+ pTableLayout->ConvertTable(xSubTable,crowid,nRowMark,i,nColMark);
+ xXFCell->Add(xSubTable.get());
i = nColMark;
}
else
More information about the Libreoffice-commits
mailing list