summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-02-16 19:50:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-17 08:19:52 +0000
commiteefa8e8110c432be36e1cd5d166b5f5676a7e5ca (patch)
treebe8662835c1b24681ce0f6adc932310c2083461f /ucb/source
parent130602ad8cdb45235dd99c60876fc8a091b9bc89 (diff)
osl::Mutex->std::mutex in SortedDynamicResultSetListener
Change-Id: I70b20a616cb84c5c066431be50359def5d041b3b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147188 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/sorter/sortdynres.cxx6
-rw-r--r--ucb/source/sorter/sortdynres.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index fe142c2b53f4..a3bf493a2ba0 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -474,7 +474,7 @@ SortedDynamicResultSetListener::~SortedDynamicResultSetListener()
void SAL_CALL
SortedDynamicResultSetListener::disposing( const EventObject& /*Source*/ )
{
- osl::Guard< osl::Mutex > aGuard( maMutex );
+ std::unique_lock aGuard( maMutex );
if ( mpOwner )
mpOwner->impl_disposing();
@@ -486,7 +486,7 @@ SortedDynamicResultSetListener::disposing( const EventObject& /*Source*/ )
void SAL_CALL
SortedDynamicResultSetListener::notify( const ListEvent& Changes )
{
- osl::Guard< osl::Mutex > aGuard( maMutex );
+ std::unique_lock aGuard( maMutex );
if ( mpOwner )
mpOwner->impl_notify( Changes );
@@ -497,7 +497,7 @@ SortedDynamicResultSetListener::notify( const ListEvent& Changes )
void
SortedDynamicResultSetListener::impl_OwnerDies()
{
- osl::Guard< osl::Mutex > aGuard( maMutex );
+ std::unique_lock aGuard( maMutex );
mpOwner = nullptr;
}
diff --git a/ucb/source/sorter/sortdynres.hxx b/ucb/source/sorter/sortdynres.hxx
index 320e4d9ddb8e..2bb8f24aa8c2 100644
--- a/ucb/source/sorter/sortdynres.hxx
+++ b/ucb/source/sorter/sortdynres.hxx
@@ -113,7 +113,7 @@ class SortedDynamicResultSetListener: public cppu::WeakImplHelper <
css::ucb::XDynamicResultSetListener >
{
SortedDynamicResultSet *mpOwner;
- osl::Mutex maMutex;
+ std::mutex maMutex;
public:
SortedDynamicResultSetListener( SortedDynamicResultSet *mOwner );