diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-06-05 17:14:59 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-06-05 17:14:59 +0000 |
commit | 1ab2673efe7b9e27c182b8dac158be38fc05cfcb (patch) | |
tree | e3e07e0eb1961add9dca67df3dc832d9119fc9ab /ucb/source/ucp/package/pkgservices.cxx | |
parent | d560faf8b29a7c717890d284bf31fd9219b0c47a (diff) |
INTEGRATION: CWS bgdlremove (1.6.40); FILE MERGED
2007/05/11 09:20:55 kso 1.6.40.1: 76911# - ucbhelper lib no longer uses VOS.
(vos::ORef => rtl::Reference, vos::OMutex => osl::Mutex, ...)
Diffstat (limited to 'ucb/source/ucp/package/pkgservices.cxx')
-rw-r--r-- | ucb/source/ucp/package/pkgservices.cxx | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/ucb/source/ucp/package/pkgservices.cxx b/ucb/source/ucp/package/pkgservices.cxx index 069471a4af..d549e4367e 100644 --- a/ucb/source/ucp/package/pkgservices.cxx +++ b/ucb/source/ucp/package/pkgservices.cxx @@ -4,9 +4,9 @@ * * $RCSfile: pkgservices.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2006-09-17 14:00:30 $ + * last change: $Author: ihi $ $Date: 2007-06-05 18:14:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -50,27 +50,27 @@ #include "pkgprovider.hxx" #endif -using namespace rtl; -using namespace com::sun::star::uno; -using namespace com::sun::star::lang; -using namespace com::sun::star::registry; +using namespace com::sun::star; + +namespace { //========================================================================= -static sal_Bool writeInfo( void * pRegistryKey, - const OUString & rImplementationName, - Sequence< OUString > const & rServiceNames ) +sal_Bool writeInfo( + void * pRegistryKey, + const rtl::OUString & rImplementationName, + uno::Sequence< rtl::OUString > const & rServiceNames ) { - OUString aKeyName( OUString::createFromAscii( "/" ) ); + rtl::OUString aKeyName( rtl::OUString::createFromAscii( "/" ) ); aKeyName += rImplementationName; - aKeyName += OUString::createFromAscii( "/UNO/SERVICES" ); + aKeyName += rtl::OUString::createFromAscii( "/UNO/SERVICES" ); - Reference< XRegistryKey > xKey; + uno::Reference< registry::XRegistryKey > xKey; try { - xKey = static_cast< XRegistryKey * >( + xKey = static_cast< registry::XRegistryKey * >( pRegistryKey )->createKey( aKeyName ); } - catch ( InvalidRegistryException const & ) + catch ( registry::InvalidRegistryException const & ) { } @@ -85,7 +85,7 @@ static sal_Bool writeInfo( void * pRegistryKey, { xKey->createKey( rServiceNames[ n ] ); } - catch ( InvalidRegistryException const & ) + catch ( registry::InvalidRegistryException const & ) { bSuccess = sal_False; break; @@ -94,6 +94,8 @@ static sal_Bool writeInfo( void * pRegistryKey, return bSuccess; } +} // namespace + //========================================================================= extern "C" void SAL_CALL component_getImplementationEnvironment( const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) @@ -122,9 +124,9 @@ extern "C" void * SAL_CALL component_getFactory( { void * pRet = 0; - Reference< XMultiServiceFactory > xSMgr( - reinterpret_cast< XMultiServiceFactory * >( pServiceManager ) ); - Reference< XSingleServiceFactory > xFactory; + uno::Reference< lang::XMultiServiceFactory > xSMgr( + reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ) ); + uno::Reference< lang::XSingleServiceFactory > xFactory; ////////////////////////////////////////////////////////////////////// // Create factory, if implementation name matches. |