Kaydet (Commit) 554be83e authored tarafından Michael Meeks's avatar Michael Meeks

correct debugging assertions.

Change-Id: I2437b4d3c532be6cbb31dccfa9e267498111c183
üst 9d35e6df
...@@ -65,7 +65,7 @@ SfxPrinter* DocumentDeviceManager::getPrinter(/*[in]*/ bool bCreate ) const ...@@ -65,7 +65,7 @@ SfxPrinter* DocumentDeviceManager::getPrinter(/*[in]*/ bool bCreate ) const
void DocumentDeviceManager::setPrinter(/*[in]*/ SfxPrinter *pP,/*[in]*/ bool bDeleteOld,/*[in]*/ bool bCallPrtDataChanged ) void DocumentDeviceManager::setPrinter(/*[in]*/ SfxPrinter *pP,/*[in]*/ bool bDeleteOld,/*[in]*/ bool bCallPrtDataChanged )
{ {
assert ( !pP->isDisposed() ); assert ( !!pP && !pP->isDisposed() );
if ( pP != mpPrt ) if ( pP != mpPrt )
{ {
if ( bDeleteOld ) if ( bDeleteOld )
...@@ -101,7 +101,7 @@ VirtualDevice* DocumentDeviceManager::getVirtualDevice(/*[in]*/ bool bCreate ) c ...@@ -101,7 +101,7 @@ VirtualDevice* DocumentDeviceManager::getVirtualDevice(/*[in]*/ bool bCreate ) c
else else
pRet = &CreateVirtualDevice_(); pRet = &CreateVirtualDevice_();
assert ( !pRet->isDisposed() ); assert ( !pRet || !pRet->isDisposed() );
return pRet; return pRet;
} }
...@@ -138,7 +138,7 @@ OutputDevice* DocumentDeviceManager::getReferenceDevice(/*[in]*/ bool bCreate ) ...@@ -138,7 +138,7 @@ OutputDevice* DocumentDeviceManager::getReferenceDevice(/*[in]*/ bool bCreate )
pRet = getVirtualDevice( bCreate ); pRet = getVirtualDevice( bCreate );
} }
assert ( !pRet->isDisposed() ); assert ( !pRet || !pRet->isDisposed() );
return pRet; return pRet;
} }
......
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