diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-20 12:59:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-20 13:52:17 +0200 |
commit | 18793ae6a2d537b2546a3b9b1659a4cba63f1b80 (patch) | |
tree | 83c5314477ae388717fbffad7549fb1d6d118f49 /sd/source/ui/presenter | |
parent | c53b880f0058889f9f4850bb474323213cd49c81 (diff) |
loplugin:defaultparams
Change-Id: Ie989fe233fc3295fb1901881b59e506ef340ffea
Diffstat (limited to 'sd/source/ui/presenter')
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterTextView.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx index dc606fdb7209..970c1b49fe06 100644 --- a/sd/source/ui/presenter/PresenterHelper.cxx +++ b/sd/source/ui/presenter/PresenterHelper.cxx @@ -92,7 +92,7 @@ Reference<awt::XWindow> SAL_CALL PresenterHelper::createWindow ( // Make the frame window transparent and make the parent able to // draw behind it. if (pParentWindow.get() != NULL) - pParentWindow->EnableChildTransparentMode(true); + pParentWindow->EnableChildTransparentMode(); } pWindow->Show(bInitiallyVisible); diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx index c8d9c364fd05..e90e3f56256c 100644 --- a/sd/source/ui/presenter/PresenterTextView.cxx +++ b/sd/source/ui/presenter/PresenterTextView.cxx @@ -440,7 +440,7 @@ sal_Int32 PresenterTextView::Implementation::ParseDistance (const OUString& rsDi { const sal_Int32 nLines (rsDistance.copy(0,rsDistance.getLength()-1).toInt32()); // Take the height of the first line as the height of every line. - const sal_uInt32 nFirstLineHeight (mpEditEngine->GetLineHeight(0,0)); + const sal_uInt32 nFirstLineHeight (mpEditEngine->GetLineHeight(0)); nDistance = nFirstLineHeight * nLines; } @@ -456,7 +456,7 @@ Reference<rendering::XBitmap> PresenterTextView::Implementation::GetBitmap() mpOutputDevice.disposeAndClear(); mpOutputDevice = VclPtr<VirtualDevice>::Create(*Application::GetDefaultDevice(), 0, 0); mpOutputDevice->SetMapMode(MAP_PIXEL); - mpOutputDevice->SetOutputSizePixel(maSize, true); + mpOutputDevice->SetOutputSizePixel(maSize); mpOutputDevice->SetLineColor(); mpOutputDevice->SetFillColor(); mpOutputDevice->SetBackground(Wallpaper()); @@ -503,7 +503,7 @@ void PresenterTextView::Implementation::CheckTop() if (mpEditEngine!=NULL && mnTotalHeight < 0) mnTotalHeight = mpEditEngine->GetTextHeight(); if (mpEditEngine!=NULL && mnTop >= mnTotalHeight) - mnTop = mnTotalHeight - mpEditEngine->GetLineHeight(0,0); + mnTop = mnTotalHeight - mpEditEngine->GetLineHeight(0); if (mnTotalHeight < maSize.Height()) mnTop = 0; |