diff options
author | Olivier Hallot <olivier.hallot@documentfoundation.org> | 2012-01-01 12:55:53 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-02 19:17:17 +0100 |
commit | 6af59644d6508049409a03d1c4a598ea2bef521e (patch) | |
tree | 6897eaf76372c606a487ebb0135962e6c7e52cb7 /oox/source/docprop/docprophandler.cxx | |
parent | 93d2a2eb4dd13d81b9be4f087653baecb33ead67 (diff) |
Fix for fdo43460 Part XXV getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460
Part XXI
Module
oox
Diffstat (limited to 'oox/source/docprop/docprophandler.cxx')
-rw-r--r-- | oox/source/docprop/docprophandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx index 242d83b8e0fb..264ea9fc2ab1 100644 --- a/oox/source/docprop/docprophandler.cxx +++ b/oox/source/docprop/docprophandler.cxx @@ -72,7 +72,7 @@ void OOXMLDocPropHandler::InitNew() // ------------------------------------------------ void OOXMLDocPropHandler::AddCustomProperty( const uno::Any& aAny ) { - if ( m_aCustomPropertyName.getLength() ) + if ( !m_aCustomPropertyName.isEmpty() ) { const uno::Reference< beans::XPropertyContainer > xUserProps = m_xDocProp->getUserDefinedProperties(); @@ -164,7 +164,7 @@ util::DateTime OOXMLDocPropHandler::GetDateTimeFromW3CDTF( const ::rtl::OUString // ------------------------------------------------ uno::Sequence< ::rtl::OUString > OOXMLDocPropHandler::GetKeywordsSet( const ::rtl::OUString& aChars ) { - if ( aChars.getLength() ) + if ( !aChars.isEmpty() ) { uno::Sequence< ::rtl::OUString > aResult( 20 ); sal_Int32 nCounter = 0; @@ -181,7 +181,7 @@ uno::Sequence< ::rtl::OUString > OOXMLDocPropHandler::GetKeywordsSet( const ::rt case (sal_Unicode)'\t': // this is a delimiter // unfortunately I did not find any specification for the possible delimiters - if ( aResult[nCounter].getLength() ) + if ( !aResult[nCounter].isEmpty() ) { if ( nCounter >= aResult.getLength() ) aResult.realloc( nCounter + 10 ); @@ -246,7 +246,7 @@ void OOXMLDocPropHandler::UpdateDocStatistic( const ::rtl::OUString& aChars ) break; } - if ( aName.getLength() ) + if ( !aName.isEmpty() ) { sal_Bool bFound = sal_False; sal_Int32 nLen = aSet.getLength(); |