diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-03 21:14:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-04 09:48:31 +0100 |
commit | 852f469ba97caf01641b654f2e37dd9a290a6bce (patch) | |
tree | 07a1375399326371548c9a26815675dd0d7d87f9 /lotuswordpro | |
parent | 7088140dbf1d5e0391c2662f0213018a45620ff9 (diff) |
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@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 |