diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-02 08:37:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-02 09:23:35 +0200 |
commit | f96ce4da54200dc06d995c82cc1834c0d06241b9 (patch) | |
tree | 52199d1156c05e0435354309eb725b79e4d33397 /sw/source/uibase/utlui/content.cxx | |
parent | 38b6cef2d3fe707cbc7bc79399db4524176eda07 (diff) |
SwRegionContent is unnecessary
after
commit 5a2c0ab29719ac914d30d8789c0e386541702cbf
Date: Fri Feb 28 11:13:12 2020 +0000
weld writer navigator
found by loplugin:unusedmethods
Change-Id: Icbfa9de744f43fc36a2d19213185928090342f4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91542
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/utlui/content.cxx')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 366816e032f2..fa20a29864ff 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -369,8 +369,7 @@ void SwContentType::Init(bool* pbInvalidateWindow) pParentFormat = pParentFormat->GetParent(); } - std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, rSectionName, - nLevel, + std::unique_ptr<SwContent> pCnt(new SwContent(this, rSectionName, pFormat->FindLayoutRect( false, &aNullPt ).Top())); SwPtrMsgPoolItem aAskItem( RES_CONTENT_VISIBLE, nullptr ); @@ -675,8 +674,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged) pParentFormat = pParentFormat->GetParent(); } - std::unique_ptr<SwContent> pCnt(new SwRegionContent(this, sSectionName, - nLevel, + std::unique_ptr<SwContent> pCnt(new SwContent(this, sSectionName, pFormat->FindLayoutRect( false, &aNullPt ).Top())); if( !pFormat->GetInfo( aAskItem ) && !aAskItem.pObject ) // not visible |