summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 15:28:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-27 15:31:00 +0200
commit6c97d801203b277428e329d174c8650e5fae78ab (patch)
tree6f3bd74f23cabfdac763e3c02ee973d43f4d9c9f /sc/source/ui/vba
parent3591554df303958e519d8758acd595975809c827 (diff)
More loplugin:simplifybool
Change-Id: I65ea51a6d34942acfe8c4fe0dee62781251fb1bf
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx2
-rw-r--r--sc/source/ui/vba/vbavalidation.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index 1cd88511f60a..c2b0f7da4345 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -176,7 +176,7 @@ ScVbaAxes::Item( const css::uno::Any& _nType, const css::uno::Any& _oAxisGroup)
// bodgy helperapi port bits
sal_Int32 nAxisGroup = xlPrimary;
sal_Int32 nType = -1;
- if ( !_nType.hasValue() || ( ( _nType >>= nType ) == false ) )
+ if ( !_nType.hasValue() || !( _nType >>= nType ) )
throw uno::RuntimeException("Axes::Item Failed to extract type" );
if ( _oAxisGroup.hasValue() )
diff --git a/sc/source/ui/vba/vbavalidation.cxx b/sc/source/ui/vba/vbavalidation.cxx
index 95585a05b51b..541be9a773e2 100644
--- a/sc/source/ui/vba/vbavalidation.cxx
+++ b/sc/source/ui/vba/vbavalidation.cxx
@@ -74,7 +74,7 @@ ScVbaValidation::getInCellDropdown() throw (uno::RuntimeException, std::exceptio
uno::Reference< beans::XPropertySet > xProps = lcl_getValidationProps( m_xRange );
sal_Int32 nShowList = 0;
xProps->getPropertyValue( SC_UNONAME_SHOWLIST ) >>= nShowList;
- return ( nShowList ? sal_True : false );
+ return nShowList != 0;
}
void SAL_CALL