summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remotebridges/source/bridge/remote_bridge.cxx8
-rw-r--r--remotebridges/source/factory/bridgefactory.cxx13
2 files changed, 13 insertions, 8 deletions
diff --git a/remotebridges/source/bridge/remote_bridge.cxx b/remotebridges/source/bridge/remote_bridge.cxx
index e6a7f6d1a..d05a3cee8 100644
--- a/remotebridges/source/bridge/remote_bridge.cxx
+++ b/remotebridges/source/bridge/remote_bridge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: remote_bridge.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jbu $ $Date: 2000-10-27 09:00:57 $
+ * last change: $Author: jbu $ $Date: 2000-10-30 09:08:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -394,8 +394,8 @@ namespace remotebridges_bridge
{
static Sequence< OUString > seqNames(3);
seqNames.getArray()[0] = OUString::createFromAscii( "com.sun.star.bridge.Bridge" );
- seqNames.getArray()[1] = OUString::createFromAscii( "com.sun.star.bridge.Iiop" );
- seqNames.getArray()[2] = OUString::createFromAscii( "com.sun.star.bridge.Urp" );
+ seqNames.getArray()[1] = OUString::createFromAscii( "com.sun.star.bridge.IiopBridge" );
+ seqNames.getArray()[2] = OUString::createFromAscii( "com.sun.star.bridge.UrpBridge" );
pNames = &seqNames;
}
diff --git a/remotebridges/source/factory/bridgefactory.cxx b/remotebridges/source/factory/bridgefactory.cxx
index 45ef246e7..686809566 100644
--- a/remotebridges/source/factory/bridgefactory.cxx
+++ b/remotebridges/source/factory/bridgefactory.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bridgefactory.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jbu $ $Date: 2000-10-27 09:08:43 $
+ * last change: $Author: jbu $ $Date: 2000-10-30 09:08:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -218,8 +218,13 @@ namespace remotebridges_factory
if( seq.getConstArray()[i] != sMetaService )
{
sal_Int32 nIndex = seq.getConstArray()[i].lastIndexOf( '.' );
- OUString sProtocol = seq.getConstArray()[i].copy( nIndex+1).toLowerCase();
- m_mapProtocolToService[ sProtocol ] = seq.getConstArray()[i];
+ OUString sSuffix = seq.getConstArray()[i].copy(nIndex+1);
+ if( sSuffix.getLength() > 6 &&
+ 0 == sSuffix.copy( sSuffix.getLength() - 6 ).compareToAscii( "Bridge" ) )
+ {
+ OUString sProtocol = sSuffix.copy(0 , sSuffix.getLength()-6 ).toLowerCase();
+ m_mapProtocolToService[ sProtocol ] = seq.getConstArray()[i];
+ }
}
}
}