Kaydet (Commit) 3a1bc7da authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Assert has become somewhat redundant

...with d8dbf1b5 "Turn basebmp::Format into a
proper enum" demonstrating that nDeviceFmt should only take on values enumerated
at basebmp::Format.

Change-Id: I9f5fe2b3d403a8fc50a286b40b9e1bc74079e2cb
üst db0fa926
...@@ -116,7 +116,6 @@ void SvpSalGraphics::setDevice( basebmp::BitmapDeviceSharedPtr& rDevice ) ...@@ -116,7 +116,6 @@ void SvpSalGraphics::setDevice( basebmp::BitmapDeviceSharedPtr& rDevice )
#ifndef IOS #ifndef IOS
// determine matching bitmap format for masks // determine matching bitmap format for masks
basebmp::Format nDeviceFmt = m_aDevice->getScanlineFormat(); basebmp::Format nDeviceFmt = m_aDevice->getScanlineFormat();
DBG_ASSERT( (nDeviceFmt <= (sal_uInt32)basebmp::FORMAT_MAX), "SVP::setDevice() with invalid bitmap format" );
switch( nDeviceFmt ) switch( nDeviceFmt )
{ {
case basebmp::FORMAT_EIGHT_BIT_GREY: case basebmp::FORMAT_EIGHT_BIT_GREY:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment