summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-09 13:55:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-10 11:28:16 +0000
commitb1164b07f9fdcd06a77dbdd74d45245a7c42c93e (patch)
tree3d07fe2ad37e2c7b931fb771da6dd2152657b3d4 /sd/source/ui/docshell/docshel2.cxx
parent1c6596af456e4cb98784a0728bcb936d3b1f9d0d (diff)
loplugin:constantparam in sd
Change-Id: I2bc989802c12b379a1ba4202f54ecfef1f339c8c Reviewed-on: https://gerrit.libreoffice.org/28774 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source/ui/docshell/docshel2.cxx')
-rw-r--r--sd/source/ui/docshell/docshel2.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx
index 3ec1a9eb3ae6..310f30ff4ac4 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -52,7 +52,7 @@ void DrawDocShell::Draw(OutputDevice* pOut, const JobSetup&, sal_uInt16 nAspect)
// THUMBNAIL: here we may can set the draft mode
}
- ClientView* pView = new ClientView(this, pOut, nullptr);
+ ClientView* pView = new ClientView(this, pOut);
pView->SetHlplVisible(false);
pView->SetGridVisible(false);
@@ -187,8 +187,9 @@ Size DrawDocShell::GetFirstPageSize()
/**
* Creates a bitmap of an arbitrary page
*/
-Bitmap DrawDocShell::GetPagePreviewBitmap(SdPage* pPage, sal_uInt16 nMaxEdgePixel)
+Bitmap DrawDocShell::GetPagePreviewBitmap(SdPage* pPage)
{
+ const sal_uInt16 nMaxEdgePixel = 90;
MapMode aMapMode( MAP_100TH_MM );
const Size aSize( pPage->GetSize() );
const Point aNullPt;
@@ -211,7 +212,7 @@ Bitmap DrawDocShell::GetPagePreviewBitmap(SdPage* pPage, sal_uInt16 nMaxEdgePixe
aMapMode.SetScaleY( aFrac );
pVDev->SetMapMode( aMapMode );
- ClientView* pView = new ClientView( this, pVDev, nullptr );
+ ClientView* pView = new ClientView( this, pVDev );
FrameView* pFrameView = GetFrameView();
pView->ShowSdrPage( pPage );