summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/ViewShellBase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-25 19:10:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-26 11:01:43 +0200
commitb59b4a38b45e1bf158701355c8c70f1c59f3e112 (patch)
treee40ff4daa9acec5031a28453ad8686bd6267b024 /sd/source/ui/view/ViewShellBase.cxx
parent742f030d67f3d4179d3d0153cc16be35095eb580 (diff)
loplugin:oncevar in sd
Change-Id: I56649b4df8c517f152ed4e9132985bbef22f8634 Reviewed-on: https://gerrit.libreoffice.org/39241 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/ViewShellBase.cxx')
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 930e496ef09b..6e98bf784369 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -542,8 +542,6 @@ sal_uInt16 ViewShellBase::SetPrinter (
pNewPrinter->SetMapMode(aMap);
Size aNewSize = pNewPrinter->GetOutputSize();
- bool bScaleAll = false;
-
std::shared_ptr<DrawViewShell> pDrawViewShell (
std::dynamic_pointer_cast<DrawViewShell>(GetMainViewShell()));
if (pDrawViewShell)
@@ -554,7 +552,7 @@ sal_uInt16 ViewShellBase::SetPrinter (
pDrawViewShell->GetPageKind(),
aNewSize,
-1,-1,-1,-1,
- bScaleAll,
+ false/*bScaleAll*/,
pNewPrinter->GetOrientation(),
pPage->GetPaperBin(),
pPage->IsBackgroundFullSize());
@@ -863,8 +861,7 @@ OUString ViewShellBase::GetInitialViewShellType()
if (xViewData->getCount() == 0)
break;
- sal_Int32 nView = 0;
- css::uno::Any aAny = xViewData->getByIndex(nView);
+ css::uno::Any aAny = xViewData->getByIndex(0);
Sequence<beans::PropertyValue> aProperties;
if ( ! (aAny >>= aProperties))
break;