summaryrefslogtreecommitdiff
path: root/io/source/connector/connector.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-05-31 13:03:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-01 15:35:10 +0100
commit9aad6692612fca11230fdcbcaef436d2d1e1c0b4 (patch)
tree999de0aa5131bc713b0b102a930ab6395e2426d3 /io/source/connector/connector.cxx
parent1c33dd6d012f8e3011f5b9df396f004acbc102d0 (diff)
this is overly static + double check lock for little gain
Diffstat (limited to 'io/source/connector/connector.cxx')
-rw-r--r--io/source/connector/connector.cxx15
1 files changed, 3 insertions, 12 deletions
diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx
index 92a8fdb86641..192b97075fad 100644
--- a/io/source/connector/connector.cxx
+++ b/io/source/connector/connector.cxx
@@ -204,18 +204,9 @@ namespace stoc_connector
Sequence< OUString > connector_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(SERVICE_NAME));
- pNames = &seqNames;
- }
- }
- return *pNames;
+ Sequence< OUString > seqNames(1);
+ seqNames.getArray()[0] = OUString(RTL_CONSTASCII_USTRINGPARAM(SERVICE_NAME));
+ return seqNames;
}
OUString connector_getImplementationName()