diff options
-rw-r--r-- | forms/source/xforms/binding.cxx | 5 | ||||
-rw-r--r-- | forms/source/xforms/propertysetbase.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index 0adca84e056e..a7d76aec93da 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -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() diff --git a/forms/source/xforms/propertysetbase.cxx b/forms/source/xforms/propertysetbase.cxx index 647a5bcc3394..d816c264e877 100644 --- a/forms/source/xforms/propertysetbase.cxx +++ b/forms/source/xforms/propertysetbase.cxx @@ -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!" ); |