diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:58:15 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-10 01:59:26 +0900 |
commit | e7e0455b0285f60ba999a0a6a831f3be271f5a37 (patch) | |
tree | 612248965d3b28720ae47d93c2ddf2dcd017e30e /filter/source/odfflatxml | |
parent | ef09cbf45347f5f1ea34f35acedeea5aa3a7f6f6 (diff) |
Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("...")) to equalsAscii("...")
Diffstat (limited to 'filter/source/odfflatxml')
-rw-r--r-- | filter/source/odfflatxml/OdfFlatXml.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/odfflatxml/OdfFlatXml.cxx b/filter/source/odfflatxml/OdfFlatXml.cxx index 87714e9f7552..64714042f7c9 100644 --- a/filter/source/odfflatxml/OdfFlatXml.cxx +++ b/filter/source/odfflatxml/OdfFlatXml.cxx @@ -131,9 +131,9 @@ OdfFlatXml::importer( for (sal_Int32 paramIdx = 0; paramIdx < paramCount; paramIdx++) { paramName = sourceData[paramIdx].Name; - if (paramName.equalsAscii("InputStream")) + if (paramName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InputStream"))) sourceData[paramIdx].Value >>= inputStream; - else if (paramName.equalsAscii("URL")) + else if (paramName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL"))) sourceData[paramIdx].Value >>= url; } @@ -183,9 +183,9 @@ OdfFlatXml::exporter(const Sequence< PropertyValue >& sourceData, for (sal_Int32 paramIdx = 0; paramIdx < paramCount; paramIdx++) { paramName = sourceData[paramIdx].Name; - if (paramName.equalsAscii("OutputStream")) + if (paramName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("OutputStream"))) sourceData[paramIdx].Value >>= outputStream; - else if (paramName.equalsAscii("URL")) + else if (paramName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL"))) sourceData[paramIdx].Value >>= targetURL; } |