diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:34:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:30 +0200 |
commit | 9796e52ab3bbf64fa751c71e695c64d6215e1df6 (patch) | |
tree | 03b3c3b1d9e83b49b6e242293383a3105ec1f5e9 /unotools | |
parent | 40b16e07c855521302e472eae4974524e39e2d3c (diff) |
loplugin:simplifybool
Change-Id: I56557cd02bbb97d3c3aa4053608cf2dd48c35e7a
Diffstat (limited to 'unotools')
-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 ) |