Kaydet (Commit) 5db2f661 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:simplifybool

Change-Id: I8996d0afb3669046040a4dfebc9c2c6c07fc7644
üst e8d9bf50
......@@ -816,9 +816,8 @@ Binding::XDataType_t Binding::getDataType()
bool Binding::isValid_DataType()
{
Reference<XDataType> xDataType = getDataType();
return xDataType.is()
? xDataType->validate( maBindingExpression.getString() )
: true;
return !xDataType.is()
|| xDataType->validate( maBindingExpression.getString() );
}
OUString Binding::explainInvalid_DataType()
......
......@@ -75,7 +75,7 @@ void PropertySetBase::registerProperty( const Property& rProperty,
OSL_ENSURE( rAccessor.get(), "PropertySetBase::registerProperty: invalid property accessor, this will crash!" );
m_aAccessors.insert( PropertyAccessors::value_type( rProperty.Handle, rAccessor ) );
OSL_ENSURE( ( rAccessor->isWriteable() == true )
OSL_ENSURE( rAccessor->isWriteable()
== ( ( rProperty.Attributes & com::sun::star::beans::PropertyAttribute::READONLY ) == 0 ),
"PropertySetBase::registerProperty: inconsistence!" );
......
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