diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 17:05:51 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-26 19:19:41 -0200 |
commit | 596469d4183ff451833348cb4454ad0d02e0138f (patch) | |
tree | 74bdef7370f3d0be408487ebeacab00e7dafa4fe /xmloff/source/text/txtftne.cxx | |
parent | dfa8287f8bbb6c523266237ff67eb4b3d07b5c8b (diff) |
Fix for fdo43460 Part LI getLength() to isEmpty()
Part LI
Modules
xmloff (part 4)
Diffstat (limited to 'xmloff/source/text/txtftne.cxx')
-rw-r--r-- | xmloff/source/text/txtftne.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx index b9fa46d8c0f6..2297b5ab0055 100644 --- a/xmloff/source/text/txtftne.cxx +++ b/xmloff/source/text/txtftne.cxx @@ -143,7 +143,7 @@ void XMLTextParagraphExport::exportTextFootnote( aCharStyleNamesPropInfoCache.hasProperty( rPropSet ), bHasAutoStyle, rPropSet, sCharStyleNames ); - if( sStyle.getLength() ) + if( !sStyle.isEmpty() ) { GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_STYLE_NAME, GetExport().EncodeStyleName( sStyle ) ); @@ -195,7 +195,7 @@ void XMLTextParagraphExport::exportTextFootnoteHelper( { // handle label vs. automatic numbering OUString sLabel = rFootnote->getLabel(); - if (sLabel.getLength()>0) + if (!sLabel.isEmpty()) { GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_LABEL, sLabel); @@ -248,7 +248,7 @@ void lcl_exportString( Any aAny = rPropSet->getPropertyValue(sProperty); OUString sTmp; aAny >>= sTmp; - if (!bOmitIfEmpty || (sTmp.getLength() > 0)) + if (!bOmitIfEmpty || !sTmp.isEmpty()) { if( bEncodeName ) sTmp = rExport.EncodeStyleName( sTmp ); @@ -368,7 +368,7 @@ void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper( aAny = rFootnoteConfig->getPropertyValue(sEndNotice); aAny >>= sTmp; - if (sTmp.getLength() > 0) + if (!sTmp.isEmpty()) { SvXMLElementExport aElem(GetExport(), XML_NAMESPACE_TEXT, XML_FOOTNOTE_CONTINUATION_NOTICE_FORWARD, @@ -380,7 +380,7 @@ void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper( aAny = rFootnoteConfig->getPropertyValue(sBeginNotice); aAny >>= sTmp; - if (sTmp.getLength() > 0) + if (!sTmp.isEmpty()) { SvXMLElementExport aElem(GetExport(), XML_NAMESPACE_TEXT, XML_FOOTNOTE_CONTINUATION_NOTICE_BACKWARD, |