summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-04 18:21:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-04 21:00:50 +0200
commitc74c5a79f138dfba6a63aa8bbecf6f9d01443cee (patch)
tree7cb0ad5b4fef8df675027153913c4346d841bca2 /ucb
parentcc4951d4042b7dd7635ec77c972350b59d609afc (diff)
osl::Mutex->std::mutex in PropertyNamesCache
Change-Id: I985f9174ea1c6b88e02298f030a81a021c0b1ae3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120008 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-neon/PropfindCache.cxx6
-rw-r--r--ucb/source/ucp/webdav-neon/PropfindCache.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav-neon/PropfindCache.cxx b/ucb/source/ucp/webdav-neon/PropfindCache.cxx
index a54003661ec0..63cdff370c40 100644
--- a/ucb/source/ucp/webdav-neon/PropfindCache.cxx
+++ b/ucb/source/ucp/webdav-neon/PropfindCache.cxx
@@ -42,7 +42,7 @@ namespace webdav_ucp
bool PropertyNamesCache::getCachedPropertyNames( const OUString& rURL, PropertyNames& rCacheElement )
{
// search the URL in the static map
- osl::MutexGuard aGuard( m_aMutex );
+ std::scoped_lock aGuard( m_aMutex );
PropNameCache::const_iterator it = m_aTheCache.find( rURL );
if ( it == m_aTheCache.end() )
return false;
@@ -65,7 +65,7 @@ namespace webdav_ucp
void PropertyNamesCache::removeCachedPropertyNames( const OUString& rURL )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::scoped_lock aGuard( m_aMutex );
PropNameCache::const_iterator it = m_aTheCache.find( rURL );
if ( it != m_aTheCache.end() )
{
@@ -75,7 +75,7 @@ namespace webdav_ucp
void PropertyNamesCache::addCachePropertyNames( PropertyNames& rCacheElement )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::scoped_lock aGuard( m_aMutex );
OUString aURL( rCacheElement.getURL() );
TimeValue t1;
osl_getSystemTime( &t1 );
diff --git a/ucb/source/ucp/webdav-neon/PropfindCache.hxx b/ucb/source/ucp/webdav-neon/PropfindCache.hxx
index 368c28193baf..b2e4008dc682 100644
--- a/ucb/source/ucp/webdav-neon/PropfindCache.hxx
+++ b/ucb/source/ucp/webdav-neon/PropfindCache.hxx
@@ -11,7 +11,7 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
-#include <osl/mutex.hxx>
+#include <mutex>
#include <map>
#include <vector>
@@ -61,7 +61,7 @@ namespace webdav_ucp
class PropertyNamesCache final
{
PropNameCache m_aTheCache;
- osl::Mutex m_aMutex;
+ std::mutex m_aMutex;
public:
PropertyNamesCache();