summaryrefslogtreecommitdiff
path: root/vcl/headless/svpvd.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-18 09:37:44 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 10:20:31 +0200
commite18b08363a939b35e7f5dc435e606d2c62bddebd (patch)
tree6318e03a67fd2dfbbd29b88b3de36ad7e9fd6292 /vcl/headless/svpvd.cxx
parent20ff8cc5c3534d149b18b9776ab964324e70fdfd (diff)
loplugin:unusedmethods
Change-Id: Ifafdaf6da0225f244853a0042a6458643b570623
Diffstat (limited to 'vcl/headless/svpvd.cxx')
-rw-r--r--vcl/headless/svpvd.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/vcl/headless/svpvd.cxx b/vcl/headless/svpvd.cxx
index 6eb0a114ca32..0273f3f7311c 100644
--- a/vcl/headless/svpvd.cxx
+++ b/vcl/headless/svpvd.cxx
@@ -19,8 +19,6 @@
#ifndef IOS
-#include <vcl/svpforlokit.hxx>
-
#include "headless/svpbmp.hxx"
#include "headless/svpinst.hxx"
#include "headless/svpvd.hxx"
@@ -56,36 +54,32 @@ bool SvpSalVirtualDevice::SetSize( long nNewDX, long nNewDY )
}
bool SvpSalVirtualDevice::SetSizeUsingBuffer( long nNewDX, long nNewDY,
- const basebmp::RawMemorySharedArray &pBuffer )
+ const basebmp::RawMemorySharedArray &pBuffer )
{
B2IVector aDevSize( nNewDX, nNewDY );
if( aDevSize.getX() == 0 )
aDevSize.setX( 1 );
if( aDevSize.getY() == 0 )
aDevSize.setY( 1 );
- if( ! m_aDevice.get() || m_aDevice->getSize() != aDevSize )
- {
+ if( ! m_aDevice.get() || m_aDevice->getSize() != aDevSize ) {
basebmp::Format nFormat = SvpSalInstance::getBaseBmpFormatForDeviceFormat(m_eFormat);
- if (m_eFormat == DeviceFormat::BITMASK)
- {
+ if (m_eFormat == DeviceFormat::BITMASK) {
std::vector< basebmp::Color > aDevPal(2);
aDevPal[0] = basebmp::Color( 0, 0, 0 );
aDevPal[1] = basebmp::Color( 0xff, 0xff, 0xff );
m_aDevice = createBitmapDevice( aDevSize, true, nFormat,
PaletteMemorySharedVector( new std::vector< basebmp::Color >(aDevPal) ) );
- }
- else
- {
+ } else {
m_aDevice = pBuffer ?
- createBitmapDevice( aDevSize, true, nFormat, pBuffer, PaletteMemorySharedVector() )
+ createBitmapDevice( aDevSize, true, nFormat, pBuffer, PaletteMemorySharedVector() )
: createBitmapDevice( aDevSize, true, nFormat );
}
// update device in existing graphics
for( std::list< SvpSalGraphics* >::iterator it = m_aGraphics.begin();
it != m_aGraphics.end(); ++it )
- (*it)->setDevice( m_aDevice );
+ (*it)->setDevice( m_aDevice );
}
return true;