use rtl::OStringBuffer::getStr()
This commit is contained in:
@@ -305,16 +305,16 @@ namespace XSLT
|
|||||||
OSL_ASSERT(m_transformer != NULL);
|
OSL_ASSERT(m_transformer != NULL);
|
||||||
OSL_ASSERT(m_transformer->getInputStream().is());
|
OSL_ASSERT(m_transformer->getInputStream().is());
|
||||||
OSL_ASSERT(m_transformer->getOutputStream().is());
|
OSL_ASSERT(m_transformer->getOutputStream().is());
|
||||||
OSL_ASSERT(m_transformer->getStyleSheetURL());
|
OSL_ASSERT(!m_transformer->getStyleSheetURL().isEmpty());
|
||||||
::std::map<const char*, OString>::iterator pit;
|
::std::map<const char*, OString>::iterator pit;
|
||||||
::std::map<const char*, OString> pmap = m_transformer->getParameters();
|
::std::map<const char*, OString> pmap = m_transformer->getParameters();
|
||||||
::std::vector< const char* > params( pmap.size() * 2 + 1 ); // build parameters
|
::std::vector< const char* > params( pmap.size() * 2 + 1 ); // build parameters
|
||||||
int paramIndex = 0;
|
int paramIndex = 0;
|
||||||
for (pit = pmap.begin(); pit != pmap.end(); ++pit)
|
for (pit = pmap.begin(); pit != pmap.end(); ++pit)
|
||||||
{
|
{
|
||||||
params[paramIndex++] = (*pit).first;
|
params[paramIndex++] = (*pit).first;
|
||||||
params[paramIndex++] = (*pit).second.getStr();
|
params[paramIndex++] = (*pit).second.getStr();
|
||||||
}
|
}
|
||||||
params[paramIndex] = NULL;
|
params[paramIndex] = NULL;
|
||||||
xmlDocPtr doc = xmlReadIO(&ParserInputBufferCallback::on_read,
|
xmlDocPtr doc = xmlReadIO(&ParserInputBufferCallback::on_read,
|
||||||
&ParserInputBufferCallback::on_close,
|
&ParserInputBufferCallback::on_close,
|
||||||
|
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <osl/time.h>
|
#include <osl/time.h>
|
||||||
#include <osl/conditn.h>
|
#include <osl/conditn.h>
|
||||||
|
#include <rtl/strbuf.hxx>
|
||||||
#include <tools/urlobj.hxx>
|
#include <tools/urlobj.hxx>
|
||||||
|
|
||||||
#include <comphelper/interaction.hxx>
|
#include <comphelper/interaction.hxx>
|
||||||
@@ -220,12 +221,11 @@ m_rServiceFactory(r), m_bTerminated(sal_False), m_bError(sal_False)
|
|||||||
{
|
{
|
||||||
Exception e;
|
Exception e;
|
||||||
if (a >>= e)
|
if (a >>= e)
|
||||||
{
|
{
|
||||||
OString aMessage("XSLTFilter::error was called: ");
|
rtl::OStringBuffer aMessage(RTL_CONSTASCII_STRINGPARAM("XSLTFilter::error was called: "));
|
||||||
aMessage += OUStringToOString(e.Message,
|
aMessage.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US));
|
||||||
RTL_TEXTENCODING_ASCII_US);
|
OSL_FAIL(aMessage.getStr());
|
||||||
OSL_FAIL(aMessage);
|
}
|
||||||
}
|
|
||||||
m_bError = sal_True;
|
m_bError = sal_True;
|
||||||
osl_setCondition(m_cTransformed);
|
osl_setCondition(m_cTransformed);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user