summaryrefslogtreecommitdiff
path: root/vcl/source/treelist
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-30 15:23:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-31 14:16:59 +0200
commit95e7f977acc81555525565853e42e9df9ff5ebad (patch)
tree7eac0c18adf32b07276f67526e53cd077121b9d5 /vcl/source/treelist
parentf1f15123bb6af38866b40f8e0d0b6530f69e1eca (diff)
osl::Mutex->std::mutex in DragSourceHelper
Change-Id: I886300dc65542f5e716fa970a9804c6084419515 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119727 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/treelist')
-rw-r--r--vcl/source/treelist/transfer2.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/treelist/transfer2.cxx b/vcl/source/treelist/transfer2.cxx
index bc654bbb7975..fb7877e60ff1 100644
--- a/vcl/source/treelist/transfer2.cxx
+++ b/vcl/source/treelist/transfer2.cxx
@@ -83,9 +83,8 @@ void DragSourceHelper::dispose()
{
Reference<XDragGestureRecognizer> xTmp;
{
- osl::MutexGuard aGuard( maMutex );
- xTmp = mxDragGestureRecognizer;
- mxDragGestureRecognizer.clear();
+ std::lock_guard aGuard( maMutex );
+ xTmp = std::move(mxDragGestureRecognizer);
}
if( xTmp.is() )
xTmp->removeDragGestureListener( mxDragGestureListener );