bool improvements
Change-Id: I9eebb02ff295bf5713ce39fabd38a7a0d10b89f4
This commit is contained in:
@@ -216,8 +216,7 @@ getCurrentDoc( const OUString& sKey ) throw (uno::RuntimeException)
|
|||||||
if ( pCompVar )
|
if ( pCompVar )
|
||||||
{
|
{
|
||||||
aModel = sbxToUnoValue( pCompVar );
|
aModel = sbxToUnoValue( pCompVar );
|
||||||
if ( sal_False == ( aModel >>= xModel ) ||
|
if ( !( aModel >>= xModel ) || !xModel.is() )
|
||||||
!xModel.is() )
|
|
||||||
{
|
{
|
||||||
throw uno::RuntimeException(
|
throw uno::RuntimeException(
|
||||||
"Can't extract model from basic ( it's obviously not set yet therefore don't know the current document context)" , uno::Reference< uno::XInterface >() );
|
"Can't extract model from basic ( it's obviously not set yet therefore don't know the current document context)" , uno::Reference< uno::XInterface >() );
|
||||||
|
Reference in New Issue
Block a user