From d980ba7a9da88f88da96bd83c79b833d4b8b0033 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Jan 2014 21:52:17 +0100 Subject: [PATCH] bool improvements Change-Id: I9eebb02ff295bf5713ce39fabd38a7a0d10b89f4 --- vbahelper/source/vbahelper/vbahelper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index a3bcc5154f62..bddda57aece6 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -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 >() );