diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-06-15 21:26:15 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-06-19 11:52:41 +0200 |
commit | dd4ce342c22290311c62f91981e0bb74984e52ea (patch) | |
tree | 9b5a2098314edd4b2c187b4ef1351ac496174e73 /svtools | |
parent | 8bb5411cb5a848c5866385b4078ba83a3d646986 (diff) |
no references to temporaries
Change-Id: I6c7a7b88b64ec8c0eef8eac30ea3e6e40e271f76
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 7 |
1 files 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 |