summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-06-20 09:03:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-06-20 10:19:33 +0200
commit6ad13e0e5d1caa8e1ffcf7092e1c04011b5df055 (patch)
tree7c23a0cecafd94959d26909cfe0199f5e7f20253 /desktop
parentb520005b1d42ce80296cbbc6b4fc3cc5e5d8cae0 (diff)
Demote from std::unique_lock to std::scoped_lock where applicable
Change-Id: I53a019f05978bab62ad0da3d0eb08f37f8ec1e18 Reviewed-on: https://gerrit.libreoffice.org/74414 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 23205bb7afa7..0d7d1327a40f 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1434,7 +1434,7 @@ void CallbackFlushHandler::Invoke()
if (m_pCallback && !m_bEventLatch)
{
- std::unique_lock<std::mutex> lock(m_mutex);
+ std::scoped_lock<std::mutex> lock(m_mutex);
SAL_INFO("lok", "Flushing " << m_queue.size() << " elements.");
for (const auto& rCallbackData : m_queue)