diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-28 13:50:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:04 +0200 |
commit | 278379697d82e4b4a3204e82fcdababebe2340f3 (patch) | |
tree | ee847794cdd14bbb11e11c5d2269213cdb2719aa /desktop | |
parent | 9b07288138228af56e58f50dc6ba50865b52fdfb (diff) |
fdo#46808, Adapt io::Pipe UNO service to new style
Create a merged XPipe interface for this service to implement.
Which is backwards-compatible, but does not require creating a new service.
Change-Id: I682633c6252aab503eb2469c9bd2ba771f10bc4b
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/package/dp_package.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index 3a520ebf738c..ea4e345b22cd 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -49,6 +49,7 @@ #include "com/sun/star/graphic/XGraphic.hpp" #include "com/sun/star/graphic/GraphicProvider.hpp" #include "com/sun/star/graphic/XGraphicProvider.hpp" +#include <com/sun/star/io/Pipe.hpp> #include "com/sun/star/io/XOutputStream.hpp" #include "com/sun/star/io/XInputStream.hpp" #include "com/sun/star/task/InteractionClassification.hpp" @@ -1182,9 +1183,7 @@ void BackendImpl::PackageImpl::exportTo( xContext->getServiceManager()->createInstanceWithContext( OUSTR("com.sun.star.packages.manifest.ManifestWriter"), xContext ), UNO_QUERY_THROW ); - Reference<io::XOutputStream> xPipe( - xContext->getServiceManager()->createInstanceWithContext( - OUSTR("com.sun.star.io.Pipe"), xContext ), UNO_QUERY_THROW ); + Reference<io::XOutputStream> xPipe( io::Pipe::create(xContext), UNO_QUERY_THROW ); xManifestWriter->writeManifestSequence( xPipe, comphelper::containerToSequence(manifest) ); |