diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 16:23:36 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-28 18:07:59 +0200 |
commit | e5321eba2ddf439ac9e066365b53e5fc772d8b4c (patch) | |
tree | d0032c78594cae610ceb618fb6c09fd427881075 /sw | |
parent | 3a24e72f24dd89a8b21ae31ca27e1dcfde777210 (diff) |
Remove unneeded check
See commit 60dca2de31ad6a187e35b3a2d751ea674f7f0d9d, which converted preceeding
OSL_ENSURE into asserts - so nullptr is considered impossible here.
Change-Id: Ia6d8f226d94c84a66bad67ce1b5f702864d61fdc
Reviewed-on: https://gerrit.libreoffice.org/71475
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index 8e7c4a3700ff..b5e458e5c24d 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1640,8 +1640,7 @@ void InsertCnt_( SwLayoutFrame *pLay, SwDoc *pDoc, //Close the section, where appropriate activate the surrounding //section again. - SwActualSection *pActualSectionUpper1 = pActualSection ? pActualSection->GetUpper() : nullptr; - pActualSection.reset(pActualSectionUpper1); + pActualSection.reset(pActualSection->GetUpper()); pLay = pLay->FindSctFrame(); if ( pActualSection ) { |