summaryrefslogtreecommitdiff
path: root/stoc/source/registry_tdprovider
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-01 15:34:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-01 15:35:10 +0100
commitc1abc2ec9efcae4c0da96699631ae7c12f1dc5eb (patch)
tree04ca153ba68c82394b8d019fa51837a07bd4896f /stoc/source/registry_tdprovider
parent91cbb7b7d0d0b45e5287a8d5f9f6c51380dab15a (diff)
fix up
Diffstat (limited to 'stoc/source/registry_tdprovider')
-rw-r--r--stoc/source/registry_tdprovider/tdprovider.cxx27
1 files changed, 4 insertions, 23 deletions
diff --git a/stoc/source/registry_tdprovider/tdprovider.cxx b/stoc/source/registry_tdprovider/tdprovider.cxx
index bcebd85ffd44..726760d816d6 100644
--- a/stoc/source/registry_tdprovider/tdprovider.cxx
+++ b/stoc/source/registry_tdprovider/tdprovider.cxx
@@ -68,33 +68,14 @@ namespace stoc_bootstrap
{
uno::Sequence< OUString > rdbtdp_getSupportedServiceNames()
{
- static Sequence < OUString > *pNames = 0;
- if( ! pNames )
- {
- MutexGuard guard( Mutex::getGlobalMutex() );
- if( !pNames )
- {
- static Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = OUString(RTL_CONSTASCII_USTRINGPARAM(SERVICENAME));
- pNames = &seqNames;
- }
- }
- return *pNames;
+ Sequence< OUString > seqNames(1);
+ seqNames.getArray()[0] = OUString(RTL_CONSTASCII_USTRINGPARAM(SERVICENAME));
+ return seqNames;
}
OUString rdbtdp_getImplementationName()
{
- static OUString *pImplName = 0;
- if( ! pImplName )
- {
- MutexGuard guard( Mutex::getGlobalMutex() );
- if( ! pImplName )
- {
- static OUString implName( RTL_CONSTASCII_USTRINGPARAM( IMPLNAME ) );
- pImplName = &implName;
- }
- }
- return *pImplName;
+ return OUString(RTL_CONSTASCII_USTRINGPARAM(IMPLNAME));
}
}