diff options
-rw-r--r-- | unotools/source/config/configvaluecontainer.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/searchopt.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx index 1b1cfa58cc13..ff046cd37e90 100644 --- a/unotools/source/config/configvaluecontainer.cxx +++ b/unotools/source/config/configvaluecontainer.cxx @@ -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); diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx index d57713095ef3..3c442ab4ad53 100644 --- a/unotools/source/config/searchopt.cxx +++ b/unotools/source/config/searchopt.cxx @@ -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 ) |