From dd4ce342c22290311c62f91981e0bb74984e52ea Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 15 Jun 2012 21:26:15 +0200 Subject: no references to temporaries Change-Id: I6c7a7b88b64ec8c0eef8eac30ea3e6e40e271f76 --- svtools/source/graphic/grfmgr2.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index 1967e4427b37..1a43fe8b44f3 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -387,7 +387,7 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, BitmapEx aOutBmpEx; Point aOutPt; Size aOutSz; - const Size& rBmpSzPix = rBmpEx.GetSizePixel(); + const Size rBmpSzPix = rBmpEx.GetSizePixel(); const long nW = rBmpSzPix.Width(); const long nH = rBmpSzPix.Height(); const long nNewW = aUnrotatedSzPix.Width(); @@ -606,9 +606,8 @@ sal_Bool GraphicManager::ImplCreateOutput( OutputDevice* pOut, const double fScaleX = fOutWH / fGrfWH; const double fScaleY = 1.0; - const MapMode& rPrefMapMode( rMtf.GetPrefMapMode() ); - const Size& rSizePix( pOut->LogicToPixel( aNewSize, - rPrefMapMode ) ); + const MapMode rPrefMapMode( rMtf.GetPrefMapMode() ); + const Size rSizePix( pOut->LogicToPixel( aNewSize, rPrefMapMode ) ); // taking care of font width default if scaling metafile. // #117889# use existing metafile scan, to determine whether -- cgit