From db93b92d78714ed193b3cbe52b18e3cfd9da99b8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 17 Mar 2016 11:21:56 +0200 Subject: loplugin:constantparam in sfx2 Change-Id: I53e690ab8d50fb3ce43ba633fc018e7b66e591cd Reviewed-on: https://gerrit.libreoffice.org/23321 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/view/ViewShellBase.cxx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'sd/source/ui/view/ViewShellBase.cxx') diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 79026733d1ef..580f85edeae1 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -528,8 +528,7 @@ SfxPrinter* ViewShellBase::GetPrinter (bool bCreate) sal_uInt16 ViewShellBase::SetPrinter ( SfxPrinter* pNewPrinter, - SfxPrinterChangeFlags nDiffFlags, - bool bIsAPI) + SfxPrinterChangeFlags nDiffFlags) { OSL_ASSERT(mpImpl.get()!=nullptr); @@ -545,14 +544,6 @@ sal_uInt16 ViewShellBase::SetPrinter ( Size aNewSize = pNewPrinter->GetOutputSize(); bool bScaleAll = false; - if ( bIsAPI ) - { - ScopedVclPtrInstance aWarnBox ( - GetWindow(), - (WinBits)(WB_YES_NO | WB_DEF_YES), - SD_RESSTR(STR_SCALE_OBJS_TO_PAGE)); - bScaleAll = (aWarnBox->Execute() == RET_YES); - } std::shared_ptr pDrawViewShell ( std::dynamic_pointer_cast(GetMainViewShell())); @@ -696,14 +687,13 @@ void ViewShellBase::WriteUserDataSequence ( } void ViewShellBase::ReadUserDataSequence ( - const css::uno::Sequence< css::beans::PropertyValue >& rSequence, - bool bBrowse) + const css::uno::Sequence< css::beans::PropertyValue >& rSequence) { // Forward call to main sub shell. ViewShell* pShell = GetMainViewShell().get(); if (pShell != nullptr) { - pShell->ReadUserDataSequence (rSequence, bBrowse); + pShell->ReadUserDataSequence (rSequence, true/*bBrowse*/); // For certain shell types ReadUserDataSequence may have changed the // type to another one. Make sure that the center pane shows the -- cgit