From 21a9bc8716a88fa2472c525b2e6f84fe1213a8f8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Nov 2015 09:40:28 +0200 Subject: 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 Reviewed-by: Noel Grandin --- scripting/source/protocolhandler/scripthandler.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripting') 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 */ -- cgit