diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 14:20:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:05 +0200 |
commit | d110a0125251119d71f466b62b5250eae4be5f88 (patch) | |
tree | cafb25722368f63c15198dc2014ba86d48c885b7 /forms | |
parent | 278379697d82e4b4a3204e82fcdababebe2340f3 (diff) |
Some clean up of previous commit
Change-Id: I6507b731665eb3d98a8fbf3d445f6c85e6d49258
Diffstat (limited to 'forms')
4 files changed, 7 insertions, 10 deletions
diff --git a/forms/source/xforms/submission/serialization_app_xml.cxx b/forms/source/xforms/submission/serialization_app_xml.cxx index 6b9e2fb266c7..7c783bf8adaa 100644 --- a/forms/source/xforms/submission/serialization_app_xml.cxx +++ b/forms/source/xforms/submission/serialization_app_xml.cxx @@ -43,10 +43,8 @@ CSerializationAppXML::CSerializationAppXML() : m_aFactory(comphelper::getProcessServiceFactory()) - , m_aPipe(CSS::io::Pipe::create(comphelper::getProcessComponentContext()), CSS::uno::UNO_QUERY_THROW) -{ - OSL_ENSURE(m_aPipe.is(), "cannot create Pipe"); -} + , m_aPipe(CSS::io::Pipe::create(comphelper::getProcessComponentContext())) +{} CSS::uno::Reference< CSS::io::XInputStream > CSerializationAppXML::getInputStream() diff --git a/forms/source/xforms/submission/serialization_app_xml.hxx b/forms/source/xforms/submission/serialization_app_xml.hxx index 9564961bbbc9..8f72bd8d627e 100644 --- a/forms/source/xforms/submission/serialization_app_xml.hxx +++ b/forms/source/xforms/submission/serialization_app_xml.hxx @@ -29,7 +29,7 @@ #ifndef __SERIALIZATION_APP_XML_HXX #define __SERIALIZATION_APP_XML_HXX -#include <com/sun/star/io/XOutputStream.hpp> +#include <com/sun/star/io/XPipe.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include "serialization.hxx" @@ -39,7 +39,7 @@ class CSerializationAppXML : public CSerialization { private: CSS::uno::Reference< CSS::lang::XMultiServiceFactory > m_aFactory; - CSS::uno::Reference< CSS::io::XOutputStream > m_aPipe; + CSS::uno::Reference< CSS::io::XPipe > m_aPipe; void serialize_node(const CSS::uno::Reference< CSS::xml::dom::XNode >& aNode); void serialize_nodeset(); diff --git a/forms/source/xforms/submission/serialization_urlencoded.cxx b/forms/source/xforms/submission/serialization_urlencoded.cxx index 8ba1be433991..a1e7d71bd950 100644 --- a/forms/source/xforms/submission/serialization_urlencoded.cxx +++ b/forms/source/xforms/submission/serialization_urlencoded.cxx @@ -50,7 +50,7 @@ using namespace CSS::xml::dom; CSerializationURLEncoded::CSerializationURLEncoded() : m_aFactory(comphelper::getProcessServiceFactory()) - , m_aPipe(Pipe::create(comphelper::getProcessComponentContext()), UNO_QUERY_THROW) + , m_aPipe(Pipe::create(comphelper::getProcessComponentContext())) { } diff --git a/forms/source/xforms/submission/serialization_urlencoded.hxx b/forms/source/xforms/submission/serialization_urlencoded.hxx index 3401869054cb..0421acf5d3e8 100644 --- a/forms/source/xforms/submission/serialization_urlencoded.hxx +++ b/forms/source/xforms/submission/serialization_urlencoded.hxx @@ -21,8 +21,7 @@ #define __SERIALIZATION_URLENCODED_HXX #include <com/sun/star/lang/XMultiServiceFactory.hpp> -#include <com/sun/star/io/XInputStream.hpp> -#include <com/sun/star/io/XOutputStream.hpp> +#include <com/sun/star/io/XPipe.hpp> #include <rtl/strbuf.hxx> @@ -32,7 +31,7 @@ class CSerializationURLEncoded : public CSerialization { private: CSS::uno::Reference< CSS::lang::XMultiServiceFactory > m_aFactory; - CSS::uno::Reference< CSS::io::XOutputStream > m_aPipe; + CSS::uno::Reference< CSS::io::XPipe > m_aPipe; sal_Bool is_unreserved(sal_Char); void encode_and_append(const rtl::OUString& aString, rtl::OStringBuffer& aBuffer); |