diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-25 21:59:48 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-25 21:59:48 -0200 |
commit | 3dbb89e5a39e7811d2fc0c1fbad012c3d565396b (patch) | |
tree | c30b07e879ad20c5bded2291296f9633c273ab5e /xmloff/source/style/XMLBackgroundImageExport.cxx | |
parent | 4228c5542b57b43064bbefb3cc79c4eb51e059d6 (diff) |
Fix for fdo43460 Part XLVIII getLength() to isEmpty()
Part XLVIII
Modules
xmloff (part 2)
Diffstat (limited to 'xmloff/source/style/XMLBackgroundImageExport.cxx')
-rw-r--r-- | xmloff/source/style/XMLBackgroundImageExport.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/style/XMLBackgroundImageExport.cxx b/xmloff/source/style/XMLBackgroundImageExport.cxx index 5465098cd78b..0db36cab8147 100644 --- a/xmloff/source/style/XMLBackgroundImageExport.cxx +++ b/xmloff/source/style/XMLBackgroundImageExport.cxx @@ -67,10 +67,10 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL, OUString sURL; rURL >>= sURL; - if( sURL.getLength() && GraphicLocation_NONE != ePos ) + if( !sURL.isEmpty() && GraphicLocation_NONE != ePos ) { OUString sTempURL( GetExport().AddEmbeddedGraphicObject( sURL ) ); - if( sTempURL.getLength() ) + if( !sTempURL.isEmpty() ) { GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sTempURL ); GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, @@ -146,7 +146,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL, { OUString sFilter; (*pFilter) >>= sFilter; - if( sFilter.getLength() ) + if( !sFilter.isEmpty() ) GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_FILTER_NAME, sFilter ); } @@ -166,7 +166,7 @@ void XMLBackgroundImageExport::exportXML( const Any& rURL, { SvXMLElementExport aElem( GetExport(), nPrefix, rLocalName, sal_True, sal_True ); - if( sURL.getLength() && GraphicLocation_NONE != ePos ) + if( !sURL.isEmpty() && GraphicLocation_NONE != ePos ) { // optional office:binary-data GetExport().AddEmbeddedGraphicObjectAsBase64( sURL ); |