summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-25 10:49:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-25 10:49:28 +0100
commit15e67c8fbda050ba82886188889e77ade1e52451 (patch)
tree0c3169d91f867085f0bfcb933f933d79f03c5bfb
parent9b20b8e9c6a177b98b86f227e2e5d056563ec9d5 (diff)
Clean up (don't bind retval temporaries to references).
-rw-r--r--vcl/source/gdi/gdimtf.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index f6cb49cfe808..e9ac49e0da5e 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 () )
{