diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2000-10-30 08:08:46 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2000-10-30 08:08:46 +0000 |
commit | e9e3e94ed3bb1622d3d17fae2d85faf34db22cf6 (patch) | |
tree | fc22e06044a68f5d37e55ece11abc62922d2e38e /remotebridges | |
parent | 86fc6ec7ff953f494fec5d5e68545c54166e81b7 (diff) |
switched to different naming convention for protocols, service should be named UrpBridge instead of simply Urp
Diffstat (limited to 'remotebridges')
-rw-r--r-- | remotebridges/source/bridge/remote_bridge.cxx | 8 | ||||
-rw-r--r-- | remotebridges/source/factory/bridgefactory.cxx | 13 |
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]; + } } } } |