summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-07-31 18:48:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-31 21:57:23 +0200
commit2b525409ffd97f534114089aa73d0a931ba49c48 (patch)
tree622a66e480cd860efdb8aecd0ebcd3c68ccfef24
parenta72f7ad1563e9b46d5fe15ef2531d9681b0218a9 (diff)
osl::Mutex->std::mutex in ScEditUtil
Change-Id: I9bc69b24b9ced4b41d12263d3515538b6a02e79d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119748 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sc/source/core/tool/editutil.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx
index de1205af7d23..63cbfe5736f0 100644
--- a/sc/source/core/tool/editutil.cxx
+++ b/sc/source/core/tool/editutil.cxx
@@ -45,6 +45,7 @@
#include <scmod.hxx>
#include <inputopt.hxx>
#include <compiler.hxx>
+#include <mutex>
using namespace com::sun::star;
@@ -113,8 +114,8 @@ OUString ScEditUtil::GetString( const EditTextObject& rEditText, const ScDocumen
if( !rEditText.HasField())
return GetMultilineString( rEditText );
- static osl::Mutex aMutex;
- osl::MutexGuard aGuard( aMutex);
+ static std::mutex aMutex;
+ std::lock_guard aGuard( aMutex);
// ScFieldEditEngine is needed to resolve field contents.
if (pDoc)
{