[Libreoffice-commits] .: vcl/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Wed Jan 25 01:49:45 PST 2012
vcl/source/gdi/gdimtf.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 15e67c8fbda050ba82886188889e77ade1e52451
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jan 25 10:49:28 2012 +0100
Clean up (don't bind retval temporaries to references).
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index f6cb49c..e9ac49e 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -449,13 +449,13 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S
try
{
- const uno::Reference<rendering::XCanvas>& xCanvas = win->GetCanvas ();
+ uno::Reference<rendering::XCanvas> xCanvas = win->GetCanvas ();
if (!xCanvas.is())
return false;
Size aSize (rDestSize.Width () + 1, rDestSize.Height () + 1);
- const uno::Reference<rendering::XBitmap>& xBitmap = xCanvas->getDevice ()->createCompatibleAlphaBitmap (vcl::unotools::integerSize2DFromSize( aSize));
+ uno::Reference<rendering::XBitmap> xBitmap = xCanvas->getDevice ()->createCompatibleAlphaBitmap (vcl::unotools::integerSize2DFromSize( aSize));
uno::Reference< lang::XMultiServiceFactory > xFactory = vcl::unohelper::GetMultiServiceFactory();
if( xFactory.is() && xBitmap.is () )
{
More information about the Libreoffice-commits
mailing list