diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpcelllayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 2d25248c6af7..373656132adb 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -438,7 +438,7 @@ LwpCellBorderType LwpCellLayout::GetCellBorderType(sal_uInt16 nRow, sal_uInt16 n LwpCellLayout * pLeftNeighbour = GetCellByRowCol(nRow, GetLeftColID(nCol), pTableLayout); if (pLeftNeighbour) { - XFBorders * pNeighbourBorders = pLeftNeighbour->GetXFBorders(); + std::unique_ptr<XFBorders> pNeighbourBorders = pLeftNeighbour->GetXFBorders(); if (pNeighbourBorders) { XFBorder& rRightBorder = pNeighbourBorders->GetRight(); @@ -449,7 +449,6 @@ LwpCellBorderType LwpCellLayout::GetCellBorderType(sal_uInt16 nRow, sal_uInt16 n // we should not ignored it bNoLeftBorder = true; } - delete pNeighbourBorders; } } @@ -457,7 +456,7 @@ LwpCellBorderType LwpCellLayout::GetCellBorderType(sal_uInt16 nRow, sal_uInt16 n LwpCellLayout * pBelowNeighbour = GetCellByRowCol(GetBelowRowID(nRow), nCol, pTableLayout); if (pBelowNeighbour) //&& (eType == enumRightNotLastCellBorder || eType == enumLeftNotLastCellBorder) ) { - XFBorders * pBelowBorders = pBelowNeighbour->GetXFBorders(); + std::unique_ptr<XFBorders> pBelowBorders = pBelowNeighbour->GetXFBorders(); if (pBelowBorders) { XFBorder& rTopBorder = pBelowBorders->GetTop(); @@ -468,7 +467,6 @@ LwpCellBorderType LwpCellLayout::GetCellBorderType(sal_uInt16 nRow, sal_uInt16 n // we should not ignored it bNoBottomBorder = true; } - delete pBelowBorders; } } |