summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-02 16:46:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-03 10:13:55 +0200
commit071d14324c2c5c85ed8fe7a0e8bb2ae77d1538f9 (patch)
treeea67604cdb5aa445ac2e7715d9bcfd803a2f8b50 /sc/source/filter/inc
parent4f891d874c8e748ec9a6680f8d12df41ab846aa4 (diff)
tdf#119007 Crash when paste table from web
regression from commit 510033783a9921eef507d424fc5adf6e2696bc4a loplugin:useuniqueptr in ScHTMLLayoutParser Change-Id: I3c6f04ac2c8f188856ec4c9eb6bf520fa03ee97a Reviewed-on: https://gerrit.libreoffice.org/58480 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/inc')
-rw-r--r--sc/source/filter/inc/htmlpars.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/inc/htmlpars.hxx b/sc/source/filter/inc/htmlpars.hxx
index bac9257f9d5d..2518e68631d2 100644
--- a/sc/source/filter/inc/htmlpars.hxx
+++ b/sc/source/filter/inc/htmlpars.hxx
@@ -99,7 +99,7 @@ struct ScHTMLTableStackEntry
{
ScRangeListRef xLockedList;
std::shared_ptr<ScEEParseEntry> xCellEntry;
- ScHTMLColOffset* pLocalColOffset;
+ std::unique_ptr<ScHTMLColOffset> pLocalColOffset;
sal_uLong nFirstTableCell;
SCROW nRowCnt;
SCCOL nColCntStart;
@@ -110,14 +110,14 @@ struct ScHTMLTableStackEntry
sal_uInt16 nColOffsetStart;
bool bFirstRow;
ScHTMLTableStackEntry( const std::shared_ptr<ScEEParseEntry>& rE,
- const ScRangeListRef& rL, ScHTMLColOffset* pTO,
+ const ScRangeListRef& rL, std::unique_ptr<ScHTMLColOffset> pTO,
sal_uLong nFTC,
SCROW nRow,
SCCOL nStart, SCCOL nMax, sal_uInt16 nTab,
sal_uInt16 nTW, sal_uInt16 nCO, sal_uInt16 nCOS,
bool bFR )
: xLockedList( rL ), xCellEntry(rE),
- pLocalColOffset( pTO ),
+ pLocalColOffset( std::move(pTO) ),
nFirstTableCell( nFTC ),
nRowCnt( nRow ),
nColCntStart( nStart ), nMaxCol( nMax ),