diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-03 21:27:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-04 14:22:31 +0200 |
commit | 71b3d7392bd3d0871c7383748d49ae5d46c80e51 (patch) | |
tree | e211ee863f58eca5359199e18a84f3507558d396 /toolkit/source/awt | |
parent | 36efb384a66b6dd645e0ae80fd7df68370a9dc8b (diff) |
osl::Mutex->std::mutex in VCLXPointer
Change-Id: If96f20d8ce8c893ece59e9278aa79dd1a8f8223f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119953
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r-- | toolkit/source/awt/vclxpointer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/awt/vclxpointer.cxx b/toolkit/source/awt/vclxpointer.cxx index 2d382f5c5350..89828e48a611 100644 --- a/toolkit/source/awt/vclxpointer.cxx +++ b/toolkit/source/awt/vclxpointer.cxx @@ -34,14 +34,14 @@ UNO3_GETIMPLEMENTATION_IMPL( VCLXPointer ); void VCLXPointer::setType( sal_Int32 nType ) { - ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); + std::scoped_lock aGuard( maMutex ); maPointer = static_cast<PointerStyle>(nType); } sal_Int32 VCLXPointer::getType() { - ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); + std::scoped_lock aGuard( maMutex ); return static_cast<sal_Int32>(maPointer); } |