diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-03-03 14:56:17 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-03-03 14:57:01 +0100 |
commit | 39c2a52d198f513c2f5afbd38dd9b14bff388d6e (patch) | |
tree | 8449dcbf35c67fdcc24036fb73c07038708a0985 /lotuswordpro | |
parent | e336f41e50ea96880dd71a2b42aa37cf53256383 (diff) |
Avoid temporary rtl::OUString
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpfilter.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index 1f66f947dd89..dc2bfee0bde3 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -114,7 +114,7 @@ sal_Bool LWPFilterReader::filter( const Sequence< PropertyValue >& aDescriptor ) for( sal_Int32 i = 0; i < aDescriptor.getLength(); i++ ) { //Note we should attempt to use "InputStream" if it exists first! - if( aDescriptor[i].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) ) + if( aDescriptor[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL")) ) aDescriptor[i].Value >>= sURL; } @@ -218,11 +218,11 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro sal_Int32 nPropertyCount = aDescriptor.getLength(); for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty ) { - if( aDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) ) + if( aDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("TypeName")) ) { aDescriptor[nProperty].Value >>= aTypeName; } - else if( aDescriptor[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("AsTemplate")) ) + else if( aDescriptor[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("AsTemplate")) ) { bOpenAsTemplate = sal_True; } @@ -232,17 +232,17 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro { OUString strTemp; aDescriptor[i].Value >>= strTemp; - if( aDescriptor[i].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("InputStream")) ) + if( aDescriptor[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InputStream")) ) { uno::Reference< XInputStream> rInputStream; aDescriptor[i].Value >>= rInputStream; // - // TRANSFORM IMPLEMENTATION HERE!!!!!! + // TODO TRANSFORM IMPLEMENTATION HERE!!!!!! // and call m_DocumentHandler's SAX mDochods // if( IsWordproFile(rInputStream) ) { - if( aTypeName == OUString(RTL_CONSTASCII_USTRINGPARAM("wordpro_template")) ) + if( aTypeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("wordpro_template")) ) { if(!bOpenAsTemplate) { @@ -259,7 +259,7 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro } return ret; } - else if( aDescriptor[i].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("URL")) ) + else if( aDescriptor[i].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL")) ) { OUString sURL; OUString sFileName; @@ -277,7 +277,7 @@ Sequence< OUString> LWPFilterImportFilter::getSupportedServiceNames( void ) thro //end with .lwp: if( IsWordproFile(sURL) ) { - if( aTypeName == OUString(RTL_CONSTASCII_USTRINGPARAM("wordpro_template")) ) + if( aTypeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("wordpro_template")) ) { if(!bOpenAsTemplate) { |