diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-26 09:08:27 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-26 09:08:38 +0200 |
commit | d852df0d6d6f7b8c12b43c34cec83f673ef0a32f (patch) | |
tree | 7904cccbf954376ee28b6f9c9ec3c228e9de56df /vcl/source/gdi | |
parent | 975bbf29dfda6296b9f89958fe8c27af372150e7 (diff) |
Bin DestroyVirtualDevice(): Just use delete directly at call sites
Change-Id: I47c67d3d89ab22b07b3ec6fe7ea6e035d21e85b6
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/virdev.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx index 8dcc804103ae..df30533616d1 100644 --- a/vcl/source/gdi/virdev.cxx +++ b/vcl/source/gdi/virdev.cxx @@ -254,8 +254,7 @@ VirtualDevice::~VirtualDevice() ImplReleaseGraphics(); - if ( mpVirDev ) - pSVData->mpDefInst->DestroyVirtualDevice( mpVirDev ); + delete mpVirDev; // remove this VirtualDevice from the double-linked global list if( mpPrev ) @@ -350,7 +349,7 @@ bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bEra pGraphics->CopyBits( aPosAry, mpGraphics, this, this ); pNewVirDev->ReleaseGraphics( pGraphics ); ImplReleaseGraphics(); - pSVData->mpDefInst->DestroyVirtualDevice( mpVirDev ); + delete mpVirDev; mpVirDev = pNewVirDev; mnOutWidth = rNewSize.Width(); mnOutHeight = rNewSize.Height(); @@ -359,7 +358,7 @@ bool VirtualDevice::InnerImplSetOutputSizePixel( const Size& rNewSize, bool bEra else { bRet = false; - pSVData->mpDefInst->DestroyVirtualDevice( pNewVirDev ); + delete pNewVirDev; } } else |