Some clean up of previous commit

Change-Id: I6507b731665eb3d98a8fbf3d445f6c85e6d49258
This commit is contained in:
Stephan Bergmann
2012-09-03 14:20:24 +02:00
parent 278379697d
commit d110a01252
7 changed files with 14 additions and 21 deletions

View File

@@ -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()

View File

@@ -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();

View File

@@ -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()))
{
}

View File

@@ -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);