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

bool improvements

Change-Id: I9eebb02ff295bf5713ce39fabd38a7a0d10b89f4
üst f649cef1
...@@ -216,8 +216,7 @@ getCurrentDoc( const OUString& sKey ) throw (uno::RuntimeException) ...@@ -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 >() );
......
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