diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 09:41:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 13:47:52 +0200 |
commit | 604bc943655b88994faa7f307d1c48e914965e95 (patch) | |
tree | 51d09183f93c02371f764a5d1e68c7c54abcb0b5 /sw | |
parent | a43187d9075c6347412a2584d764145127779df8 (diff) |
loplugin:unusedfields readonly fields
Change-Id: I6629926df06f71ff86e9fb23ae4fc1ae73bc9406
Reviewed-on: https://gerrit.libreoffice.org/40360
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/chrdlg/chardlg.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/frmdlg/frmpage.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/basesh.cxx | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx index 3e30516b678d..bdf33691b0c3 100644 --- a/sw/source/ui/chrdlg/chardlg.cxx +++ b/sw/source/ui/chrdlg/chardlg.cxx @@ -174,8 +174,7 @@ SwCharURLPage::SwCharURLPage(vcl::Window* pParent, const SfxItemSet& rCoreSet) m_pNotVisitedLB->SaveValue(); std::unique_ptr<TargetList> pList( new TargetList ); - const SfxFrame& rFrame = pView->GetViewFrame()->GetFrame(); - rFrame.GetTargetList(*pList); + SfxFrame::GetDefaultTargetList(*pList); if ( !pList->empty() ) { size_t nCount = pList->size(); diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 82882cbc45d2..3c8657f07063 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -2763,7 +2763,7 @@ void SwFrameURLPage::Reset( const SfxItemSet *rSet ) if ( SfxItemState::SET == rSet->GetItemState( SID_DOCFRAME, true, &pItem)) { std::unique_ptr<TargetList> pList(new TargetList); - static_cast<const SfxFrameItem*>(pItem)->GetFrame()->GetTargetList(*pList); + SfxFrame::GetDefaultTargetList(*pList); if( !pList->empty() ) { size_t nCount = pList->size(); diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index e62f7a57e47b..79570ab3b9bc 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -165,7 +165,7 @@ static void lcl_UpdateIMapDlg( SwWrtShell& rSh ) void* pEditObj = GraphicType::NONE != nGrfType && GraphicType::Default != nGrfType ? rSh.GetIMapInventor() : nullptr; std::unique_ptr<TargetList> pList(new TargetList); - rSh.GetView().GetViewFrame()->GetFrame().GetTargetList(*pList); + SfxFrame::GetDefaultTargetList(*pList); SfxItemSet aSet( rSh.GetAttrPool(), svl::Items<RES_URL, RES_URL>{} ); rSh.GetFlyFrameAttr( aSet ); |