diff options
Diffstat (limited to 'forms/source/xforms/submission/submission_get.cxx')
-rw-r--r-- | forms/source/xforms/submission/submission_get.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index 72a9ffc1eee2..4ee8140b2172 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -24,21 +24,17 @@ #include <rtl/strbuf.hxx> #include <osl/diagnose.h> #include <ucbhelper/content.hxx> -#include <com/sun/star/io/Pipe.hpp> #include <com/sun/star/task/InteractionHandler.hpp> -#include <tools/diagnose_ex.h> - -#include <memory> +#include <comphelper/diagnose_ex.hxx> using namespace css::uno; using namespace css::ucb; using namespace css::task; using namespace css::io; -using namespace osl; using namespace ucbhelper; -CSubmissionGet::CSubmissionGet(const OUString& aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment) +CSubmissionGet::CSubmissionGet(std::u16string_view aURL, const css::uno::Reference< css::xml::dom::XDocumentFragment >& aFragment) : CSubmission(aURL, aFragment) { } @@ -78,14 +74,10 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference< aQueryString.append(reinterpret_cast<char const *>(aByteBuffer.getConstArray()), n); if (!aQueryString.isEmpty() && m_aURLObj.GetProtocol() != INetProtocol::File) { - aUTF8QueryURL.append('?'); - aUTF8QueryURL.append(aQueryString); + aUTF8QueryURL.append("?" + aQueryString); } - OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8); + OUString aQueryURL = OStringToOUString(aUTF8QueryURL, RTL_TEXTENCODING_UTF8); ucbhelper::Content aContent(aQueryURL, aEnvironment, m_xContext); - css::uno::Reference< XOutputStream > aPipe( css::io::Pipe::create(m_xContext), UNO_QUERY_THROW ); - if (!aContent.openStream(aPipe)) - return UNKNOWN_ERROR; // get reply try { m_aResultStream = aContent.openStream(); |