summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/document.hxx3
-rw-r--r--sc/source/core/data/documen2.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 2d3d66b8a8bb..07f488df346d 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -47,6 +47,7 @@
#include <cassert>
#include <memory>
#include <map>
+#include <mutex>
#include <optional>
#include <set>
#include <unordered_map>
@@ -469,7 +470,7 @@ private:
mutable ScInterpreterContext maInterpreterContext;
- osl::Mutex mScLookupMutex; // protection for thread-unsafe parts of handling ScLookup
+ std::mutex mScLookupMutex; // protection for thread-unsafe parts of handling ScLookup
static const sal_uInt16 nSrcVer; // file version (load/save)
sal_uInt16 nFormulaTrackCount;
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 478a42c62f52..48bd7737dcfe 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -1167,7 +1167,7 @@ ScLookupCache & ScDocument::GetLookupCache( const ScRange & rRange, ScInterprete
pCache = findIt->second.get();
// The StartListeningArea() call is not thread-safe, as all threads
// would access the same SvtBroadcaster.
- osl::MutexGuard guard( mScLookupMutex );
+ std::unique_lock guard( mScLookupMutex );
StartListeningArea(rRange, false, pCache);
}
else