diff options
author | Julien Nabet <serval@ilapharm.com> | 2010-11-23 22:41:07 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-24 07:56:52 +0100 |
commit | d255df37862a3b72029f68b8f3b4b342caecb071 (patch) | |
tree | 3eb1d52a58a2f6c7bd5eb4baacf68e422540e887 /forms/source/xforms | |
parent | 2448cfe1de708e82c7b33a454763ddf596c7b6d2 (diff) |
RTL patch
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/submission.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/submission/submission_get.cxx | 4 | ||||
-rw-r--r-- | forms/source/xforms/submission/submission_post.cxx | 7 |
3 files changed, 5 insertions, 8 deletions
diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 828846c47..265fdb833 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -665,7 +665,7 @@ Reference< XDocumentFragment > Submission::createSubmissionDocument(const Refere { using namespace com::sun::star::xml::xpath; Reference< XDocumentBuilder > aDocBuilder(m_aFactory->createInstance( - OUString::createFromAscii("com.sun.star.xml.dom.DocumentBuilder")), UNO_QUERY); + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.dom.DocumentBuilder"))), UNO_QUERY); Reference< XDocument > aDocument = aDocBuilder->newDocument(); Reference< XDocumentFragment > aFragment = aDocument->createDocumentFragment(); diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index 8fb5e39a2..91bf759e8 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -71,7 +71,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference< pHelper->m_aInteractionHandler = aInteractionHandler; else pHelper->m_aInteractionHandler = CSS::uno::Reference< XInteractionHandler >(m_aFactory->createInstance( - OUString::createFromAscii("com.sun.star.task.InteractionHandler")), UNO_QUERY); + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.task.InteractionHandler"))), UNO_QUERY); OSL_ENSURE(pHelper->m_aInteractionHandler.is(), "failed to create IntreractionHandler"); CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper; pHelper->m_aProgressHandler = CSS::uno::Reference< XProgressHandler >(pProgressHelper); @@ -98,7 +98,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference< OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8); ucbhelper::Content aContent(aQueryURL, aEnvironment); CSS::uno::Reference< XOutputStream > aPipe(m_aFactory->createInstance( - OUString::createFromAscii("com.sun.star.io.Pipe")), UNO_QUERY_THROW); + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.io.Pipe"))), UNO_QUERY_THROW); aContent.openStream(aPipe); // get reply try { diff --git a/forms/source/xforms/submission/submission_post.cxx b/forms/source/xforms/submission/submission_post.cxx index 20b00c879..e373d07b5 100644 --- a/forms/source/xforms/submission/submission_post.cxx +++ b/forms/source/xforms/submission/submission_post.cxx @@ -67,15 +67,12 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const CSS::uno::Reference< // use post command - OUString aCommandName = OUString::createFromAscii("post"); + OUString aCommandName(RTL_CONSTASCII_USTRINGPARAM("post")); PostCommandArgument2 aPostArgument; aPostArgument.Source = apSerialization->getInputStream(); - //CSS::uno::Reference< XInterface > aSink( m_aFactory->createInstance( - // OUString::createFromAscii("com.sun.star.io.Pipe")), UNO_QUERY_THROW); CSS::uno::Reference< XActiveDataSink > aSink(new ucbhelper::ActiveDataSink); - // OUString::createFromAscii("com.sun.star.io.Pipe")), UNO_QUERY_THROW); aPostArgument.Sink = aSink; - aPostArgument.MediaType = OUString::createFromAscii("application/xml"); + aPostArgument.MediaType = OUString(RTL_CONSTASCII_USTRINGPARAM("application/xml")); aPostArgument.Referer = OUString(); Any aCommandArgument; aCommandArgument <<= aPostArgument; |