diff --git a/filter/source/xsltfilter/LibXSLTTransformer.cxx b/filter/source/xsltfilter/LibXSLTTransformer.cxx index 4c2d5f498787..f12d0f208ba3 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.cxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.cxx @@ -305,16 +305,16 @@ namespace XSLT OSL_ASSERT(m_transformer != NULL); OSL_ASSERT(m_transformer->getInputStream().is()); OSL_ASSERT(m_transformer->getOutputStream().is()); - OSL_ASSERT(m_transformer->getStyleSheetURL()); + OSL_ASSERT(!m_transformer->getStyleSheetURL().isEmpty()); ::std::map::iterator pit; ::std::map pmap = m_transformer->getParameters(); ::std::vector< const char* > params( pmap.size() * 2 + 1 ); // build parameters int paramIndex = 0; for (pit = pmap.begin(); pit != pmap.end(); ++pit) - { - params[paramIndex++] = (*pit).first; - params[paramIndex++] = (*pit).second.getStr(); - } + { + params[paramIndex++] = (*pit).first; + params[paramIndex++] = (*pit).second.getStr(); + } params[paramIndex] = NULL; xmlDocPtr doc = xmlReadIO(&ParserInputBufferCallback::on_read, &ParserInputBufferCallback::on_close, diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index 9d17c05d3ada..099a1ea49707 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -40,6 +40,7 @@ #include #include +#include #include #include @@ -220,12 +221,11 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False) { Exception e; if (a >>= e) - { - OString aMessage("XSLTFilter::error was called: "); - aMessage += OUStringToOString(e.Message, - RTL_TEXTENCODING_ASCII_US); - OSL_FAIL(aMessage); - } + { + rtl::OStringBuffer aMessage(RTL_CONSTASCII_STRINGPARAM("XSLTFilter::error was called: ")); + aMessage.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US)); + OSL_FAIL(aMessage.getStr()); + } m_bError = sal_True; osl_setCondition(m_cTransformed); }