diff options
Diffstat (limited to 'sw/source/uibase/shells/tabsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/tabsh.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/tabsh.cxx b/sw/source/uibase/shells/tabsh.cxx index ef892924fc27..b9a424e0d2af 100644 --- a/sw/source/uibase/shells/tabsh.cxx +++ b/sw/source/uibase/shells/tabsh.cxx @@ -206,10 +206,7 @@ static SwTableRep* lcl_TableParamToItemSet( SfxItemSet& rSet, SwWrtShell &rSh ) //row split std::unique_ptr<SwFormatRowSplit> pSplit = rSh.GetRowSplit(); if(pSplit) - { - rSet.Put(*pSplit); - pSplit.reset(); - } + rSet.Put(std::move(pSplit)); if(!bTableSel) { @@ -1372,7 +1369,7 @@ void SwTableShell::GetState(SfxItemSet &rSet) { std::unique_ptr<SwFormatRowSplit> pSplit = rSh.GetRowSplit(); if(pSplit) - rSet.Put(*pSplit); + rSet.Put(std::move(pSplit)); else rSet.InvalidateItem( nSlot ); } |