diff options
Diffstat (limited to 'ucb/source/ucp/file/filid.cxx')
-rw-r--r-- | ucb/source/ucp/file/filid.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ucb/source/ucp/file/filid.cxx b/ucb/source/ucp/file/filid.cxx index 220d19fbd1f2..9b5cb78d2809 100644 --- a/ucb/source/ucp/file/filid.cxx +++ b/ucb/source/ucp/file/filid.cxx @@ -86,18 +86,11 @@ FileContentIdentifier::getImplementationId() uno::Sequence< uno::Type > SAL_CALL FileContentIdentifier::getTypes() { - static cppu::OTypeCollection* pCollection = nullptr; - if ( !pCollection ) { - osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() ); - if ( !pCollection ) - { - static cppu::OTypeCollection collection( + static cppu::OTypeCollection s_aCollection( cppu::UnoType<lang::XTypeProvider>::get(), cppu::UnoType<XContentIdentifier>::get() ); - pCollection = &collection; - } - } - return (*pCollection).getTypes(); + + return s_aCollection.getTypes(); } |