diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /stoc | |
parent | fdo#46808, Convert XMultiServiceFactory in ucb module (diff) | |
download | core-95c0d568fdcd0da939c891d861bb470b28079170.tar.gz core-95c0d568fdcd0da939c891d861bb470b28079170.zip |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/defaultregistry/defaultregistry.cxx | 2 | ||||
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index 0f39a0553219..f66a879af59e 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -1245,7 +1245,7 @@ void SAL_CALL NestedRegistryImpl::initialize( const Sequence< Any >& aArguments aArguments[0] >>= m_localReg; aArguments[1] >>= m_defaultReg; if ( m_localReg == m_defaultReg ) - m_defaultReg = Reference< XSimpleRegistry >(); + m_defaultReg.clear(); } } diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 5caa90e95645..b1500665e34f 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -1465,8 +1465,8 @@ void ORegistryServiceManager::dispose() // dispose MutexGuard aGuard( m_mutex ); // erase all members - m_xRegistry = Reference<XSimpleRegistry >(); - m_xRootKey = Reference<XRegistryKey >(); + m_xRegistry.clear(); + m_xRootKey.clear(); } /** |