summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-07-18 12:00:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-19 08:54:03 +0200
commite9570e324a750d103d0116a2e3495306757f1a64 (patch)
tree4b94ad04cf6dd007775be1c16c7837909efd8682 /stoc
parentd67cf46ba862ecdd8bdce451a996e64e2a86cd43 (diff)
osl::Mutex->std::mutex in ImplementationEnumeration_Impl
Change-Id: I4bb9c6dc7efd76b730e2c8acf824b1e29bca8df5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index f1543d293de7..ad7cef754c60 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -216,7 +216,7 @@ public:
virtual Any SAL_CALL nextElement() override;
private:
- Mutex aMutex;
+ std::mutex aMutex;
HashSet_Ref aImplementationMap;
HashSet_Ref::iterator aIt;
};
@@ -224,14 +224,14 @@ private:
// XEnumeration
sal_Bool ImplementationEnumeration_Impl::hasMoreElements()
{
- MutexGuard aGuard( aMutex );
+ std::lock_guard aGuard( aMutex );
return aIt != aImplementationMap.end();
}
// XEnumeration
Any ImplementationEnumeration_Impl::nextElement()
{
- MutexGuard aGuard( aMutex );
+ std::lock_guard aGuard( aMutex );
if( aIt == aImplementationMap.end() )
throw NoSuchElementException("no more elements");