From 13e5d52fc37f9283edd8a055d6b86108701182f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 9 Jun 2019 08:50:02 +0200 Subject: loplugin:constantparam Change-Id: I7bbc4e1546acf58f1ca24bfec5e465bad5ca90de Reviewed-on: https://gerrit.libreoffice.org/73732 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/dlg/sdtreelb.cxx | 4 ++-- sd/source/ui/dlg/tpaction.cxx | 4 ++-- sd/source/ui/inc/sdtreelb.hxx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sd/source/ui') diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index cfac921eeda0..6bce07db2b24 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1696,14 +1696,14 @@ void SdPageObjsTLV::AddShapeList ( /** * Fill TreeLB with pages and objects */ -void SdPageObjsTLV::Fill(const SdDrawDocument* pInDoc, bool bAllPages, const OUString& rDocName) +void SdPageObjsTLV::Fill(const SdDrawDocument* pInDoc, const OUString& rDocName) { OUString aSelection = m_xTreeView->get_selected_text(); clear(); m_pDoc = pInDoc; m_aDocName = rDocName; - m_bShowAllPages = bAllPages; + m_bShowAllPages = true; m_pMedium = nullptr; // first insert all pages including objects diff --git a/sd/source/ui/dlg/tpaction.cxx b/sd/source/ui/dlg/tpaction.cxx index 5edca44aa8a3..8eda52babf31 100644 --- a/sd/source/ui/dlg/tpaction.cxx +++ b/sd/source/ui/dlg/tpaction.cxx @@ -355,7 +355,7 @@ void SdTPAction::UpdateTree() { if( !bTreeUpdated && mpDoc && mpDoc->GetDocSh() && mpDoc->GetDocSh()->GetMedium() ) { - m_xLbTree->Fill( mpDoc, true, mpDoc->GetDocSh()->GetMedium()->GetName() ); + m_xLbTree->Fill( mpDoc, mpDoc->GetDocSh()->GetMedium()->GetName() ); bTreeUpdated = true; } } @@ -649,7 +649,7 @@ IMPL_LINK_NOARG(SdTPAction, CheckFileHdl, weld::Widget&, void) aLastFile = aFile; m_xLbTreeDocument->clear(); - m_xLbTreeDocument->Fill(pBookmarkDoc, true, aFile); + m_xLbTreeDocument->Fill(pBookmarkDoc, aFile); mpDoc->CloseBookmarkDoc(); m_xLbTreeDocument->show(); bHideTreeDocument = false; diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx index 8d404ebf5b7c..12d7a7eededc 100644 --- a/sd/source/ui/inc/sdtreelb.hxx +++ b/sd/source/ui/inc/sdtreelb.hxx @@ -413,7 +413,7 @@ public: void SetViewFrame(const SfxViewFrame* pViewFrame); - void Fill(const SdDrawDocument*, bool bAllPages, const OUString& rDocName); + void Fill(const SdDrawDocument*, const OUString& rDocName); void Fill(const SdDrawDocument*, SfxMedium* pSfxMedium, const OUString& rDocName); /** Add one list box entry for the parent of the given shapes and one child entry for -- cgit