diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-23 19:39:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-24 19:45:55 +0100 |
commit | d94db4056a49fc4fee73173e1ef1c943f8ecc21f (patch) | |
tree | ff96e7cffb88d5f8b4a5b0dfd77449c230e86092 | |
parent | 03faef951a0dd4352a371ead89ca79040359234b (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | unotools/source/config/pathoptions.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; |