diff options
author | Olivier Hallot <olivier.hallot@documentfoundation.org> | 2012-01-01 19:03:17 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-02 19:17:17 +0100 |
commit | 829db12d7e3e93b4a44f79b39a0a9f0630439109 (patch) | |
tree | 8afe2c55ddb2846fc1e7a35c0212ca2304c6f3d5 /package/source/manifest | |
parent | 6af59644d6508049409a03d1c4a598ea2bef521e (diff) |
Fix for fdo43460 Part XXVI getLength() to isEmpty()
Please find attached a partial fix for Easy Hack FDO43460
Part XXVI
Module
package
Diffstat (limited to 'package/source/manifest')
-rw-r--r-- | package/source/manifest/ManifestExport.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx index a9e9f457705c..749050802276 100644 --- a/package/source/manifest/ManifestExport.cxx +++ b/package/source/manifest/ManifestExport.cxx @@ -127,7 +127,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > xHa pValue->Value >>= aVersion; } - if ( aPath.getLength() && aMediaType.getLength() && aVersion.getLength() ) + if ( !aPath.isEmpty() && !aMediaType.isEmpty() && !aVersion.isEmpty() ) break; } @@ -142,7 +142,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > xHa sal_Bool bProvideDTD = sal_False; sal_Bool bAcceptNonemptyVersion = sal_False; sal_Bool bStoreStartKeyGeneration = sal_False; - if ( aDocMediaType.getLength() ) + if ( !aDocMediaType.isEmpty() ) { if ( aDocMediaType.equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII ) ) ) || aDocMediaType.equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII ) ) ) @@ -215,7 +215,7 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > xHa { pValue->Value >>= aString; // the version is stored only if it is not empty - if ( bAcceptNonemptyVersion && aString.getLength() ) + if ( bAcceptNonemptyVersion && !aString.isEmpty() ) pAttrList->AddAttribute ( sVersionAttribute, sCdataAttribute, aString ); } else if (pValue->Name.equals (sFullPathProperty) ) |