bool improvements

Change-Id: I9eebb02ff295bf5713ce39fabd38a7a0d10b89f4
This commit is contained in:
Stephan Bergmann
2014-01-21 21:52:17 +01:00
parent f649cef13c
commit d980ba7a9d

View File

@@ -216,8 +216,7 @@ getCurrentDoc( const OUString& sKey ) throw (uno::RuntimeException)
if ( pCompVar )
{
aModel = sbxToUnoValue( pCompVar );
if ( sal_False == ( aModel >>= xModel ) ||
!xModel.is() )
if ( !( aModel >>= xModel ) || !xModel.is() )
{
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 >() );