diff options
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 61940085eff1..6fee437ead94 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -155,7 +155,7 @@ void SvtMatchContext_Impl::Stop() css::uno::Reference< css::ucb::XCommandProcessor > proc; sal_Int32 id(0); { - std::lock_guard g(mutex_); + std::scoped_lock g(mutex_); if (!stopped_) { stopped_ = true; proc = processor_; @@ -185,7 +185,7 @@ IMPL_LINK_NOARG( SvtMatchContext_Impl, Select_Impl, void*, void ) { // avoid recursion through cancel button { - std::lock_guard g(mutex_); + std::scoped_lock g(mutex_); if (stopped_) { // Completion was stopped, no display: return; @@ -403,7 +403,7 @@ void SvtMatchContext_Impl::doExecute() ::osl::MutexGuard aGuard( theSvtMatchContextMutex::get() ); { // have we been stopped while we were waiting for the mutex? - std::lock_guard g(mutex_); + std::scoped_lock g(mutex_); if (stopped_) { return; } @@ -478,7 +478,7 @@ void SvtMatchContext_Impl::doExecute() sal_Int32 id = proc->createCommandIdentifier(); try { { - std::lock_guard g(mutex_); + std::scoped_lock g(mutex_); processor_ = proc; commandId_ = id; } @@ -503,7 +503,7 @@ void SvtMatchContext_Impl::doExecute() proc2->releaseCommandIdentifier(id); } { - std::lock_guard g(mutex_); + std::scoped_lock g(mutex_); processor_.clear(); // At least the neon-based WebDAV UCP does not // properly support aborting commands, so return |