More loplugin:simplifybool
Change-Id: I8996d0afb3669046040a4dfebc9c2c6c07fc7644
This commit is contained in:
@@ -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!" );
|
||||
|
||||
|
Reference in New Issue
Block a user