summaryrefslogtreecommitdiff
path: root/forms/source/component/FormComponent.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:24:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:26 +0100
commit9e3ced1956b71c4016dd28f7a718157194b30149 (patch)
tree460cf153f2c1af7f877e966b4fd92fb900e82c21 /forms/source/component/FormComponent.cxx
parent70217974e104ed5fcab415fdf04fd37c0cca3601 (diff)
forms: Use appropriate OUString functions on string constants
Change-Id: I1bcd815663c29025da6b3ce50bdf767eef74fe94
Diffstat (limited to 'forms/source/component/FormComponent.cxx')
-rw-r--r--forms/source/component/FormComponent.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index c6e4a8cb1ead..c152c7a29214 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -1799,7 +1799,7 @@ void OBoundControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, co
void SAL_CALL OBoundControlModel::propertyChange( const PropertyChangeEvent& evt ) throw(RuntimeException, std::exception)
{
// if the DBColumn value changed, transfer it to the control
- if ( evt.PropertyName.equals( PROPERTY_VALUE ) )
+ if ( evt.PropertyName == PROPERTY_VALUE )
{
OSL_ENSURE( evt.Source == getField(), "OBoundControlModel::propertyChange: value changes from components other than our database column?" );
osl::MutexGuard aGuard(m_aMutex);
@@ -1813,12 +1813,12 @@ void SAL_CALL OBoundControlModel::propertyChange( const PropertyChangeEvent& evt
// our binding has properties which can control properties of ourself
OUString sBindingControlledProperty;
bool bForwardToLabelControl = false;
- if ( evt.PropertyName.equals( PROPERTY_READONLY ) )
+ if ( evt.PropertyName == PROPERTY_READONLY )
{
sBindingControlledProperty = PROPERTY_READONLY;
}
- else if ( evt.PropertyName.equals( PROPERTY_RELEVANT ) )
+ else if ( evt.PropertyName == PROPERTY_RELEVANT )
{
sBindingControlledProperty = PROPERTY_ENABLED;
bForwardToLabelControl = true;