loplugin:simplifybool
Change-Id: I56557cd02bbb97d3c3aa4053608cf2dd48c35e7a
This commit is contained in:
@@ -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 >& )
|
|||||||
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 )
|
||||||
|
Reference in New Issue
Block a user