summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-28 13:50:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-03 15:55:04 +0200
commit278379697d82e4b4a3204e82fcdababebe2340f3 (patch)
treeee847794cdd14bbb11e11c5d2269213cdb2719aa /bridges
parent9b07288138228af56e58f50dc6ba50865b52fdfb (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 'bridges')
-rw-r--r--bridges/test/testoffice.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/bridges/test/testoffice.cxx b/bridges/test/testoffice.cxx
index e7b7352cb0a3..e5b3df5a3632 100644
--- a/bridges/test/testoffice.cxx
+++ b/bridges/test/testoffice.cxx
@@ -84,9 +84,7 @@ void mygetchar()
void testPipe( const Reference < XMultiServiceFactory > & rSmgr )
{
- Reference < XOutputStream > rOut(
- rSmgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.io.Pipe" )) ),
- UNO_QUERY );
+ Reference < XOutputStream > rOut( Pipe::create(comphelper::ComponentContext(rSmgr).getUNOContext()), UNO_QUERY_THROW );
OSL_ASSERT( rOut.is() );