Kaydet (Commit) 9796e52a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I56557cd02bbb97d3c3aa4053608cf2dd48c35e7a
üst 40b16e07
...@@ -234,7 +234,7 @@ namespace utl ...@@ -234,7 +234,7 @@ namespace utl
_rConfigLocation, _rConfigLocation,
_nLevels, _nLevels,
( _nAccessFlags & CVC_UPDATE_ACCESS ) ? OConfigurationTreeRoot::CM_UPDATABLE : OConfigurationTreeRoot::CM_READONLY, ( _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", SAL_WARN_IF(!m_pImpl->aConfigRoot.isValid(), "unotools.config",
"Could not access the configuration node located at " << _rConfigLocation); "Could not access the configuration node located at " << _rConfigLocation);
......
...@@ -91,7 +91,7 @@ void SvtSearchOptions_Impl::Notify( const Sequence< OUString >& ) ...@@ -91,7 +91,7 @@ void SvtSearchOptions_Impl::Notify( const Sequence< OUString >& )
bool SvtSearchOptions_Impl::GetFlag( sal_uInt16 nOffset ) const bool SvtSearchOptions_Impl::GetFlag( sal_uInt16 nOffset ) const
{ {
DBG_ASSERT( nOffset <= MAX_FLAGS_OFFSET, "offset out of range"); 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 ) void SvtSearchOptions_Impl::SetFlag( sal_uInt16 nOffset, bool bVal )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment