diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 2ee57bca11c3..33d87e4d919c 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -466,9 +466,9 @@ void MasterPagesSelector::InvalidatePreview (const SdPage* pPage) } } -VclPtr MasterPagesSelector::GetVirtualDevice(Image pImage) +VclPtr MasterPagesSelector::GetVirtualDevice(const Image& rImage) { - BitmapEx aPreviewBitmap = pImage.GetBitmapEx(); + BitmapEx aPreviewBitmap = rImage.GetBitmapEx(); VclPtr pVDev = VclPtr::Create(); const Point aNull(0, 0); if (pVDev->GetDPIScaleFactor() > 1) diff --git a/sd/source/ui/sidebar/MasterPagesSelector.hxx b/sd/source/ui/sidebar/MasterPagesSelector.hxx index 3eaf9851e317..b1c92b5d1c55 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.hxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.hxx @@ -173,7 +173,7 @@ private: sal_uInt16 nIndex, MasterPageContainer::Token aToken); - static VclPtr GetVirtualDevice(Image pPreview); + static VclPtr GetVirtualDevice(const Image& rPreview); }; } // end of namespace sd::sidebar