[Libreoffice-commits] core.git: sc/inc sc/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 29 16:28:44 UTC 2021


 sc/inc/mtvelements.hxx              |    4 ++--
 sc/source/core/data/mtvelements.cxx |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 0be7fdfa86208d74ccbd1289ebc9f2cd03c8ae84
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jul 29 15:45:55 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jul 29 18:28:09 2021 +0200

    osl::Mutex->std::mutex in ColumnBlockPositionSet
    
    Change-Id: Ib9232f3b8f78a0a72a2eb1e743451a9f66e80979
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119671
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx
index c4a2eb83413d..a6c4d5ffa7c7 100644
--- a/sc/inc/mtvelements.hxx
+++ b/sc/inc/mtvelements.hxx
@@ -16,7 +16,6 @@
 #include "calcmacros.hxx"
 #include "postit.hxx"
 #include "celltextattr.hxx"
-#include <osl/mutex.hxx>
 
 #if DEBUG_COLUMN_STORAGE
 #ifdef NDEBUG
@@ -32,6 +31,7 @@
 
 #include <unordered_map>
 #include <memory>
+#include <mutex>
 
 class ScDocument;
 class ScColumn;
@@ -142,7 +142,7 @@ class ColumnBlockPositionSet
 
     ScDocument& mrDoc;
     TablesType maTables;
-    osl::Mutex maMtxTables;
+    std::mutex maMtxTables;
 
 public:
     ColumnBlockPositionSet(ScDocument& rDoc);
diff --git a/sc/source/core/data/mtvelements.cxx b/sc/source/core/data/mtvelements.cxx
index 792b4e9d60e6..865d37bf2933 100644
--- a/sc/source/core/data/mtvelements.cxx
+++ b/sc/source/core/data/mtvelements.cxx
@@ -55,7 +55,7 @@ ColumnBlockPositionSet::ColumnBlockPositionSet(ScDocument& rDoc) : mrDoc(rDoc) {
 
 ColumnBlockPosition* ColumnBlockPositionSet::getBlockPosition(SCTAB nTab, SCCOL nCol)
 {
-    osl::MutexGuard aGuard(&maMtxTables);
+    std::lock_guard aGuard(maMtxTables);
 
     TablesType::iterator itTab = maTables.find(nTab);
     if (itTab == maTables.end())
@@ -93,7 +93,7 @@ ColumnBlockPosition* ColumnBlockPositionSet::getBlockPosition(SCTAB nTab, SCCOL
 
 void ColumnBlockPositionSet::clear()
 {
-    osl::MutexGuard aGuard(&maMtxTables);
+    std::lock_guard aGuard(maMtxTables);
     maTables.clear();
 }
 


More information about the Libreoffice-commits mailing list