diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-19 11:40:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-19 13:24:28 +0000 |
commit | f73e72fb33f111c2eda12aa359b96dad680e6848 (patch) | |
tree | 4471f76112aad3eb6b06015457ec02f7e7cb194a /vcl/headless/svpbmp.cxx | |
parent | 8b5e8dfed7c7c3c6669062a3db04961fe5eb1855 (diff) |
only use of clone is to copy, so do that
Change-Id: I75cfb96e4afd69fd0f6a6716ce4be282aa8d3b14
Diffstat (limited to 'vcl/headless/svpbmp.cxx')
-rw-r--r-- | vcl/headless/svpbmp.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/headless/svpbmp.cxx b/vcl/headless/svpbmp.cxx index e0b1afbbf5ed..05545b6757f5 100644 --- a/vcl/headless/svpbmp.cxx +++ b/vcl/headless/svpbmp.cxx @@ -77,9 +77,7 @@ bool SvpSalBitmap::Create( const SalBitmap& rSalBmp ) const BitmapDeviceSharedPtr& rSrcBmp = rSrc.getBitmap(); if( rSrcBmp.get() ) { - B2IVector aSize = rSrcBmp->getSize(); - m_aBitmap = cloneBitmapDevice( aSize, rSrcBmp ); - m_aBitmap->copyBitmap(rSrcBmp); + m_aBitmap = cloneBitmapDevice(rSrcBmp); } else m_aBitmap.reset(); |