diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-05 14:15:36 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-05 22:05:45 -0200 |
commit | fffd541c3e626bee162ab4b473b6bd6cd180244e (patch) | |
tree | 17197936ca83815d876d0c1de0c7a045a7768f7b /sax/source/fastparser/fastparser.cxx | |
parent | 15f5d766837329baa8deff31e9da33cef87f7a98 (diff) |
Fix for fdo43460 Part XXIX getLength() to isEmpty()
Part XXIX
Modules
sax, scaddins, sccomp, scripting
Diffstat (limited to 'sax/source/fastparser/fastparser.cxx')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index df7dcfcb36f1..3480628813f0 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -446,7 +446,7 @@ void FastSaxParser::parseStream( const InputSource& maStructSource) throw (SAXEx throw SAXException( OUString( RTL_CONSTASCII_USTRINGPARAM( "No input source" ) ), Reference< XInterface >(), Any() ); entity.maConverter.setInputStream( entity.maStructSource.aInputStream ); - if( entity.maStructSource.sEncoding.getLength() ) + if( !entity.maStructSource.sEncoding.isEmpty() ) entity.maConverter.setEncoding( OUStringToOString( entity.maStructSource.sEncoding, RTL_TEXTENCODING_ASCII_US ) ); // create parser with proper encoding @@ -776,7 +776,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char // #158414# second: fill attribute list with other attributes for( ::std::vector< AttributeData >::const_iterator aIt = aAttribs.begin(), aEnd = aAttribs.end(); aIt != aEnd; ++aIt ) { - if( aIt->maPrefix.getLength() > 0 ) + if( !aIt->maPrefix.isEmpty() ) { sal_Int32 nAttributeToken = GetTokenWithPrefix( aIt->maPrefix, aIt->maName ); if( nAttributeToken != FastToken::DONTKNOW ) @@ -798,7 +798,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char splitName( pwName, pPrefix, nPrefixLen, pName, nNameLen ); if( nPrefixLen > 0 ) nElementToken = GetTokenWithPrefix( pPrefix, nPrefixLen, pName, nNameLen ); - else if( rEntity.maContextStack.top()->maNamespace.getLength() > 0 ) + else if( !rEntity.maContextStack.top()->maNamespace.isEmpty() ) nElementToken = GetTokenWithNamespaceURL( rEntity.maContextStack.top()->maNamespace, pName, nNameLen ); else nElementToken = GetToken( pName ); |