diff options
author | Gustavo Buzzatti Pacheco <gbpacheco@gmail.com> | 2011-12-26 15:08:46 -0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-12-30 11:36:01 +0100 |
commit | 6cfae09e5dafa477db210272949e253d4fb24349 (patch) | |
tree | 04f24fc194e1f711228296f7f3f16b98fd489637 /forms/source/component/FormattedField.cxx | |
parent | 60b7f09ed5980248c8f3088adf80380d02d66358 (diff) |
Fix for fdo43460 Part XVIII getLength() to isEmpty()
Part XVIII
module
form
Diffstat (limited to 'forms/source/component/FormattedField.cxx')
-rw-r--r-- | forms/source/component/FormattedField.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index 5a572cb1041d..aabe3592bc93 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -278,7 +278,7 @@ void OFormattedControl::keyPressed(const ::com::sun::star::awt::KeyEvent& e) thr Any aTmp(xFormSet->getPropertyValue( PROPERTY_TARGET_URL )); if (!isA(aTmp, static_cast< ::rtl::OUString* >(NULL)) || - !getString(aTmp).getLength() ) + getString(aTmp).isEmpty() ) return; Reference<XIndexAccess> xElements(xParent, UNO_QUERY); @@ -981,7 +981,7 @@ void OFormattedModel::read(const Reference<XObjectInputStream>& _rxInStream) thr // this property is only to be set if we have no control source : in all other cases the base class did a // reset after it's read and this set the effective value to a default value - if ( m_xAggregateSet.is() && ( getControlSource().getLength() == 0 ) ) + if ( m_xAggregateSet.is() && getControlSource().isEmpty() ) { try { @@ -1029,7 +1029,7 @@ sal_Bool OFormattedModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) // Leerstring + EmptyIsNull = void if ( !aControlValue.hasValue() || ( ( aControlValue.getValueType().getTypeClass() == TypeClass_STRING ) - && ( getString( aControlValue ).getLength() == 0 ) + && getString( aControlValue ).isEmpty() && m_bEmptyIsNull ) ) |