diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 12:26:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-05 12:21:19 +0000 |
commit | 572e9cde744e2b482a04ff4b457ad2cfde5f70d2 (patch) | |
tree | 78e93df178de6d17d55eef7c3907781aa131ff7c /extensions | |
parent | 5f282c101a644ffc3615c3dc43ddb99febecae16 (diff) |
loplugin:redundantcast find c-style bool casts
Change-Id: I3237b93babc67de12c3771aa84766c2141ca93b2
Reviewed-on: https://gerrit.libreoffice.org/36137
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/cellbindinghandler.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/cellbindinghelper.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx index 930f717301c7..b45657864ab5 100644 --- a/extensions/source/propctrlr/cellbindinghandler.cxx +++ b/extensions/source/propctrlr/cellbindinghandler.cxx @@ -312,7 +312,7 @@ namespace pcr if ( xBinding.is() ) { bool bNeedIntegerBinding = ( nExchangeType == 1 ); - if ( (bool)bNeedIntegerBinding != CellBindingHelper::isCellIntegerBinding( xBinding ) ) + if ( bNeedIntegerBinding != CellBindingHelper::isCellIntegerBinding( xBinding ) ) { CellAddress aAddress; if ( m_pHelper->getAddressFromCellBinding( xBinding, aAddress ) ) diff --git a/extensions/source/propctrlr/cellbindinghelper.cxx b/extensions/source/propctrlr/cellbindinghelper.cxx index d4c4d820bf35..47b146b0bc9c 100644 --- a/extensions/source/propctrlr/cellbindinghelper.cxx +++ b/extensions/source/propctrlr/cellbindinghelper.cxx @@ -306,7 +306,7 @@ namespace pcr OSL_ENSURE( xBindingProps.is() || !_rxBinding.is(), "CellBindingHelper::getAddressFromCellBinding: no property set for the binding!" ); if ( xBindingProps.is() ) { - bReturn = (bool)( xBindingProps->getPropertyValue( PROPERTY_BOUND_CELL ) >>= _rAddress ); + bReturn = ( xBindingProps->getPropertyValue( PROPERTY_BOUND_CELL ) >>= _rAddress ); } } catch( const Exception& ) |