summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-21 21:52:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-22 08:22:33 +0100
commitd980ba7a9da88f88da96bd83c79b833d4b8b0033 (patch)
treec917b76a7cb4826b150fb3c7ff876441d32b27de /vbahelper
parentf649cef13c172a211a10ba0d9e69711fbcba509c (diff)
bool improvements
Change-Id: I9eebb02ff295bf5713ce39fabd38a7a0d10b89f4
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx3
1 files changed, 1 insertions, 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 >() );