summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-16 09:40:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-16 11:37:11 +0000
commit21a9bc8716a88fa2472c525b2e6f84fe1213a8f8 (patch)
treea162ac3df92c1f1dfef046ab6426ffc9ca5d2b7b /scripting
parentb317d5fbb5a0a8dc695391de3f9f6ee339341987 (diff)
no need to take a mutex when only dealing with stack-local data
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65 Reviewed-on: https://gerrit.libreoffice.org/19979 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx
index e1a1e6162b9d..1c5d8558d485 100644
--- a/scripting/source/protocolhandler/scripthandler.cxx
+++ b/scripting/source/protocolhandler/scripthandler.cxx
@@ -468,9 +468,8 @@ throw( RuntimeException, std::exception )
/* Helper for XServiceInfo */
Sequence< OUString > ScriptProtocolHandler::impl_getStaticSupportedServiceNames()
{
- ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
Sequence< OUString > seqServiceNames { OUString::createFromAscii(::scripting_protocolhandler::MYSERVICENAME) };
- return seqServiceNames ;
+ return seqServiceNames;
}
/* Helper for XServiceInfo */