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/xforms/datatypes.cxx | |
parent | 60b7f09ed5980248c8f3088adf80380d02d66358 (diff) |
Fix for fdo43460 Part XVIII getLength() to isEmpty()
Part XVIII
module
form
Diffstat (limited to 'forms/source/xforms/datatypes.cxx')
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index 74ebdc7d3db8..a5802d0f9b81 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -197,7 +197,7 @@ namespace xforms { if ( RID_STR_XFORMS_PATTERN_DOESNT_MATCH == nReason ) { - OSL_ENSURE( m_sPattern.getLength(), "OXSDDataType::_explainInvalid: how can this error occur without a regular expression?" ); + OSL_ENSURE( !m_sPattern.isEmpty(), "OXSDDataType::_explainInvalid: how can this error occur without a regular expression?" ); return m_sPattern; } return ::rtl::OUString(); @@ -241,7 +241,7 @@ namespace xforms ::rtl::OUString sConverted = Convert::convertWhitespace( _rValue, m_nWST ); // care for the regular expression - if ( m_sPattern.getLength() ) + if ( !m_sPattern.isEmpty() ) { // ensure our pattern matcher is up to date if ( m_bPatternMatcherDirty ) @@ -563,7 +563,7 @@ namespace xforms break; } - return _rErrorMessage.getLength() == 0; + return _rErrorMessage.isEmpty(); } //-------------------------------------------------------------------- |