loplugin:simplifybool

Change-Id: I56557cd02bbb97d3c3aa4053608cf2dd48c35e7a
This commit is contained in:
Stephan Bergmann 2015-04-24 12:34:46 +02:00
parent 40b16e07c8
commit 9796e52ab3
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ namespace utl
_rConfigLocation,
_nLevels,
( _nAccessFlags & CVC_UPDATE_ACCESS ) ? OConfigurationTreeRoot::CM_UPDATABLE : OConfigurationTreeRoot::CM_READONLY,
( _nAccessFlags & CVC_IMMEDIATE_UPDATE ) ? false : true
( _nAccessFlags & CVC_IMMEDIATE_UPDATE ) == 0
);
SAL_WARN_IF(!m_pImpl->aConfigRoot.isValid(), "unotools.config",
"Could not access the configuration node located at " << _rConfigLocation);

View File

@ -91,7 +91,7 @@ void SvtSearchOptions_Impl::Notify( const Sequence< OUString >& )
bool SvtSearchOptions_Impl::GetFlag( sal_uInt16 nOffset ) const
{
DBG_ASSERT( nOffset <= MAX_FLAGS_OFFSET, "offset out of range");
return ((nFlags >> nOffset) & 0x01) ? true : false;
return ((nFlags >> nOffset) & 0x01) != 0;
}
void SvtSearchOptions_Impl::SetFlag( sal_uInt16 nOffset, bool bVal )