diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-21 10:33:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-21 10:34:04 +0200 |
commit | fe6c124da752c784c8c9578923a0033a77d3c5b3 (patch) | |
tree | abecf6baf859612cd7255d13588ded9d204da690 /forms | |
parent | 5ff8f80a27b08ed6b3c12e354080c6ea1b90b6ee (diff) |
Remove demonstrated-useless comphelper::compare
Change-Id: Ifd1b38afb963255b76f0d821eb46e4c6a972128a
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/Currency.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/Date.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/Numeric.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/Time.cxx | 2 |
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(); |