summaryrefslogtreecommitdiff
path: root/svtools/source/graphic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-20 16:09:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-20 16:39:28 +0000
commit55ff58a4084acbdd031ae1d79f0b740e91b15fd0 (patch)
tree8bbba3aa99c78d41c986246b4d623642ac32c06f /svtools/source/graphic
parent155a4b1ff298f4510d99ed0d990d34d9231f7842 (diff)
don't need an intermediate Image
Change-Id: I2700c30000b440a0646d43bb5712fe683747b34b
Diffstat (limited to 'svtools/source/graphic')
-rw-r--r--svtools/source/graphic/provider.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index f4631b796091..a7709062f858 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -184,8 +184,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadRepositoryImage(
BitmapEx aBitmap;
if ( vcl::ImageRepository::loadImage( sPathName, aBitmap, false ) )
{
- Image aImage( aBitmap );
- xRet = aImage.GetXGraphic();
+ xRet = Graphic(aBitmap).GetXGraphic();
}
}
return xRet;