summaryrefslogtreecommitdiff
path: root/remotebridges
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2000-09-29 07:44:08 +0000
committerJörg Budischewski <jbu@openoffice.org>2000-09-29 07:44:08 +0000
commitb84e9287b7fa431d79a66ebb4f09bc8572de9623 (patch)
treefa0f22a38e82d6ff94ee0cb7b68ca53be3344f80 /remotebridges
parent4e6d49006ca80f08e62bdaf47cfc3bd078836ef6 (diff)
re-instantiating the bridge object worked only with iiop, fixed
Diffstat (limited to 'remotebridges')
-rw-r--r--remotebridges/source/factory/bridgeimpl.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/remotebridges/source/factory/bridgeimpl.cxx b/remotebridges/source/factory/bridgeimpl.cxx
index 1aaac99a00d0..9af8cf966add 100644
--- a/remotebridges/source/factory/bridgeimpl.cxx
+++ b/remotebridges/source/factory/bridgeimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bridgeimpl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 15:29:56 $
+ * last change: $Author: jbu $ $Date: 2000-09-29 08:44:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -146,7 +146,11 @@ namespace remotebridges_factory {
if( m_pContext && m_pContext->getRemoteInstance )
{
// get the appropriate remote environment
- OUString sRemote( RTL_CONSTASCII_USTRINGPARAM( UNO_LB_REMOTE ));
+ OUString sRemote( m_pContext->m_pProtocol );
+ if( sRemote.indexOf( ',' ) != -1 )
+ {
+ sRemote = sRemote.copy( 0, sRemote.indexOf( ',' ) );
+ }
uno_Environment *pEnvRemote = 0;
uno_getEnvironment( &pEnvRemote , sRemote.pData , m_pContext );