unotools/source/config/pathoptions.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d94db4056a49fc4fee73173e1ef1c943f8ecc21f
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Thu Dec 23 19:39:05 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Dec 24 19:45:55 2021 +0100

    osl::Mutex->std::mutex in SvtPathOptions_Impl
    
    Change-Id: I04d0bf2a6b00ab0da24735158ad267632356128f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127416
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/unotools/source/config/pathoptions.cxx 
b/unotools/source/config/pathoptions.cxx
index 60335e00dfb9..e7793d07321c 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -82,7 +82,7 @@ class SvtPathOptions_Impl
         VarNameSet                          m_aSystemPathVarNames;
 
         OUString                            m_aEmptyString;
-        mutable ::osl::Mutex                m_aMutex;
+        mutable std::mutex                  m_aMutex;
 
     public:
                         SvtPathOptions_Impl();
@@ -210,7 +210,7 @@ const VarNameAttribute aVarNameAttribute[] =
 
 const OUString& SvtPathOptions_Impl::GetPath( SvtPathOptions::Paths ePath )
 {
-    ::osl::MutexGuard aGuard( m_aMutex );
+    std::unique_lock aGuard( m_aMutex );
 
     try
     {
@@ -263,7 +263,7 @@ const OUString& SvtPathOptions_Impl::GetPath( 
SvtPathOptions::Paths ePath )
 
 void SvtPathOptions_Impl::SetPath( SvtPathOptions::Paths ePath, const 
OUString& rNewPath )
 {
-    ::osl::MutexGuard aGuard( m_aMutex );
+    std::unique_lock aGuard( m_aMutex );
 
     OUString    aResult;
     OUString    aNewValue;

Reply via email to