diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/odfflatxml/OdfFlatXml.cxx | 8 | ||||
-rw-r--r-- | filter/source/xsltfilter/XSLTFilter.cxx | 18 |
2 files changed, 13 insertions, 13 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; } diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index c61fe17f306c..06d4f47f6c08 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -282,13 +282,13 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) { aName = aSourceData[i].Name; Any value = aSourceData[i].Value; - if (aName.equalsAscii("InputStream")) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InputStream"))) value >>= xInputStream; - else if (aName.equalsAscii("FileName")) + else if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FileName"))) value >>= aFileName; - else if (aName.equalsAscii("URL")) + else if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL"))) value >>= aURL; - else if (aName.equalsAscii("InteractionHandler")) + else if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("InteractionHandler"))) value >>= xInterActionHandler; } OSL_ASSERT(xInputStream.is()); @@ -441,15 +441,15 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) for (sal_Int32 i = 0; i < nLength; i++) { aName = aSourceData[i].Name; - if (aName.equalsAscii("Indent")) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Indent"))) aSourceData[i].Value >>= bIndent; - if (aName.equalsAscii("DocType_Public")) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DocType_Public"))) aSourceData[i].Value >>= aDoctypePublic; - if (aName.equalsAscii("DocType_System")) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DocType_System"))) aSourceData[i].Value >>= aDoctypeSystem; - if (aName.equalsAscii("OutputStream")) + if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("OutputStream"))) aSourceData[i].Value >>= m_rOutputStream; - else if (aName.equalsAscii("URL")) + else if (aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("URL"))) aSourceData[i].Value >>= sURL; } |