diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-27 16:46:15 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-27 19:14:06 -0200 |
commit | 260054594c91af05f2825d512801200797d10075 (patch) | |
tree | 189a9b27389a76fa373b2f427b39acc4868971f9 /xmloff/source/transform/FrameOASISTContext.cxx | |
parent | 983de9808159036bd5de008d895ba6e5566c99f6 (diff) |
Fix for fdo43460 Part LIII getLength() to isEmpty()
Part LIII
Modules
xmloff (part 6)
Diffstat (limited to 'xmloff/source/transform/FrameOASISTContext.cxx')
-rw-r--r-- | xmloff/source/transform/FrameOASISTContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/transform/FrameOASISTContext.cxx b/xmloff/source/transform/FrameOASISTContext.cxx index 1b96da79e45d..6d9d1d9ea832 100644 --- a/xmloff/source/transform/FrameOASISTContext.cxx +++ b/xmloff/source/transform/FrameOASISTContext.cxx @@ -63,14 +63,14 @@ sal_Bool XMLFrameOASISTransformerContext::IsLinkedEmbeddedObject( IsXMLToken( aLocalName, XML_HREF ) ) { OUString sHRef( rAttrList->getValueByIndex( i ) ); - if (sHRef.getLength() == 0) + if (sHRef.isEmpty()) { // When the href is empty then the object is not linked but // a placeholder. return sal_False; } GetTransformer().ConvertURIToOOo( sHRef, sal_True ); - return !(sHRef.getLength() && '#'==sHRef[0]); + return !(!sHRef.isEmpty() && '#'==sHRef[0]); } } @@ -144,7 +144,7 @@ XMLTransformerContext *XMLFrameOASISTransformerContext::CreateChildContext( switch( (*aIter).second.m_nActionType ) { case XML_ETACTION_COPY: - if( !m_aElemQName.getLength() && + if( m_aElemQName.isEmpty() && !IsLinkedEmbeddedObject( rLocalName, rAttrList ) ) { pContext = new XMLIgnoreTransformerContext( GetTransformer(), @@ -192,7 +192,7 @@ void XMLFrameOASISTransformerContext::EndElement() void XMLFrameOASISTransformerContext::Characters( const OUString& rChars ) { // ignore - if( m_aElemQName.getLength() && !m_bIgnoreElement ) + if( !m_aElemQName.isEmpty() && !m_bIgnoreElement ) XMLTransformerContext::Characters( rChars ); } |