vcl/unx/gtk3/gtkinst.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 2bbacaf8170a119099fb1a6d89ab608051194625 Author: Arnaud VERSINI <arnaud.vers...@libreoffice.org> AuthorDate: Sun Nov 12 16:17:44 2023 +0100 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Nov 20 07:24:19 2023 +0100 vcl gtk3 : no need to use ClearableMutexGuard instead of Guard Change-Id: I3dc75125fa89f6b584d4caa1a950e0ec9a461fc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159347 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 22b0e0273381..e3369c163f44 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -1456,14 +1456,14 @@ std::vector<GtkTargetEntry> VclToGtkHelper::FormatsToGtk(const css::uno::Sequenc IMPL_LINK_NOARG(VclGtkClipboard, AsyncSetGtkClipboard, void*, void) { - osl::ClearableMutexGuard aGuard( m_aMutex ); + osl::Guard aGuard( m_aMutex ); m_pSetClipboardEvent = nullptr; SetGtkClipboard(); } void VclGtkClipboard::SyncGtkClipboard() { - osl::ClearableMutexGuard aGuard(m_aMutex); + osl::Guard aGuard(m_aMutex); if (m_pSetClipboardEvent) { Application::RemoveUserEvent(m_pSetClipboardEvent); @@ -1569,14 +1569,14 @@ sal_Int8 VclGtkClipboard::getRenderingCapabilities() void VclGtkClipboard::addClipboardListener( const Reference< datatransfer::clipboard::XClipboardListener >& listener ) { - osl::ClearableMutexGuard aGuard( m_aMutex ); + osl::Guard aGuard( m_aMutex ); m_aListeners.push_back( listener ); } void VclGtkClipboard::removeClipboardListener( const Reference< datatransfer::clipboard::XClipboardListener >& listener ) { - osl::ClearableMutexGuard aGuard( m_aMutex ); + osl::Guard aGuard( m_aMutex ); m_aListeners.erase(std::remove(m_aListeners.begin(), m_aListeners.end(), listener), m_aListeners.end()); }