summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-01 12:56:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-01 21:01:03 +0200
commit86d66c60043f97fcdeb7cabd40fe86c03216655a (patch)
tree74676e78a388bc781e5c181c225d2d14b1fff1d7
parentddc3e75845613a84b236229222e3a9b092a78861 (diff)
osl::Mutex->std::mutex in MasterScriptProvider
Change-Id: I40c2add3863ba284e6436a81424e3bbc7d501116 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119819 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--scripting/source/provider/MasterScriptProvider.cxx2
-rw-r--r--scripting/source/provider/MasterScriptProvider.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index 041f77a65c40..e8719c8cb4aa 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -335,7 +335,7 @@ MasterScriptProvider::providerCache()
{
if ( !m_pPCache )
{
- ::osl::MutexGuard aGuard( m_mutex );
+ std::lock_guard aGuard( m_mutex );
if ( !m_pPCache )
{
Sequence<OUString> denylist { "com.sun.star.script.provider.ScriptProviderForBasic" };
diff --git a/scripting/source/provider/MasterScriptProvider.hxx b/scripting/source/provider/MasterScriptProvider.hxx
index 2328746f950a..0e6c40f5f0a6 100644
--- a/scripting/source/provider/MasterScriptProvider.hxx
+++ b/scripting/source/provider/MasterScriptProvider.hxx
@@ -35,6 +35,7 @@
#include "ProviderCache.hxx"
#include <memory>
+#include <mutex>
namespace func_provider
{
@@ -121,7 +122,7 @@ private:
bool m_bIsPkgMSP;
css::uno::Reference< css::script::provider::XScriptProvider > m_xMSPPkg;
std::unique_ptr<ProviderCache> m_pPCache;
- osl::Mutex m_mutex;
+ std::mutex m_mutex;
OUString m_sCtxString;
};