Kaydet (Commit) 436b10ce authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: Ie9951690fa99705d2083e0d1515261f2f99fd97a
üst d706527f
......@@ -234,7 +234,7 @@ void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >&
{
lInValues[nSourceCounter] >>= xLocalizedNode;
Reference< XNameContainer > xSetAccess( xLocalizedNode, UNO_QUERY );
if( xSetAccess.is() == sal_True )
if( xSetAccess.is() )
{
lPropertyNames = xSetAccess->getElementNames() ;
nPropertiesSize = lPropertyNames.getLength() ;
......
......@@ -236,7 +236,7 @@ void SAL_CALL GlobalEventConfig_Impl::replaceByName( const OUString& aName, cons
{
Sequence< beans::PropertyValue > props;
//DF should we prepopulate the hash with a list of valid event Names?
if( sal_False == ( aElement >>= props ) )
if( !( aElement >>= props ) )
{
throw lang::IllegalArgumentException( OUString(),
Reference< XInterface > (), 2);
......
......@@ -159,7 +159,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
{
// Safe impossible cases.
// Check any for valid value.
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()\nInvalid property value detected!\n" );
DBG_ASSERT( seqValues[nProperty].hasValue(), "SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()\nInvalid property value detected!\n" );
switch( nProperty )
{
case PROPERTYHANDLE_HYPERLINKS_OPEN:
......
......@@ -152,7 +152,7 @@ SvtFontOptions_Impl::SvtFontOptions_Impl()
{
// Safe impossible cases.
// Check any for valid value.
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nInvalid property value detected!\n" );
DBG_ASSERT( seqValues[nProperty].hasValue(), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nInvalid property value detected!\n" );
switch( nProperty )
{
case PROPERTYHANDLE_REPLACEMENTTABLE : {
......
......@@ -129,7 +129,7 @@ SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl() :
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl()\nInvalid property value for property detected!\n" );
DBG_ASSERT( seqValues[nProperty].hasValue(), "SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl()\nInvalid property value for property detected!\n" );
switch( nProperty )
{
......
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