diff options
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) ); |