summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Currency.cxx2
-rw-r--r--forms/source/component/Date.cxx2
-rw-r--r--forms/source/component/Numeric.cxx2
-rw-r--r--forms/source/component/Time.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/Currency.cxx b/forms/source/component/Currency.cxx
index 28844bc3e05d..469cb6c1e96d 100644
--- a/forms/source/component/Currency.cxx
+++ b/forms/source/component/Currency.cxx
@@ -187,7 +187,7 @@ OUString SAL_CALL OCurrencyModel::getServiceName() throw ( ::com::sun::star::uno
bool OCurrencyModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) );
- if ( !compare( aControlValue, m_aSaveValue ) )
+ if ( aControlValue != m_aSaveValue )
{
if ( aControlValue.getValueType().getTypeClass() == TypeClass_VOID )
m_xColumnUpdate->updateNull();
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx
index b28531ee73b4..a74e55629295 100644
--- a/forms/source/component/Date.cxx
+++ b/forms/source/component/Date.cxx
@@ -223,7 +223,7 @@ void ODateModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
bool ODateModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) );
- if ( !compare( aControlValue, m_aSaveValue ) )
+ if ( aControlValue != m_aSaveValue )
{
if ( !aControlValue.hasValue() )
m_xColumnUpdate->updateNull();
diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx
index e7fb4955d8ff..23e6e2e160d4 100644
--- a/forms/source/component/Numeric.cxx
+++ b/forms/source/component/Numeric.cxx
@@ -138,7 +138,7 @@ OUString SAL_CALL ONumericModel::getServiceName() throw ( ::com::sun::star::uno:
bool ONumericModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) );
- if ( !compare( aControlValue, m_aSaveValue ) )
+ if ( aControlValue != m_aSaveValue )
{
if ( !aControlValue.hasValue() )
m_xColumnUpdate->updateNull();
diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx
index c2d4b667712b..c866729ca333 100644
--- a/forms/source/component/Time.cxx
+++ b/forms/source/component/Time.cxx
@@ -215,7 +215,7 @@ void OTimeModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm )
bool OTimeModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
{
Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) );
- if ( !compare( aControlValue, m_aSaveValue ) )
+ if ( aControlValue != m_aSaveValue )
{
if ( !aControlValue.hasValue() )
m_xColumnUpdate->updateNull();