summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-17 18:51:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-19 12:53:48 +0100
commita5e270ba999050b97c7ff50339dd649547057d54 (patch)
tree42ca2ce7cd57407003c382cd244adf8e7450797d /basctl
parentccb4ec50aac95bceedea762345203023b5ba57f3 (diff)
osl::Mutex->std::mutex in EditorWindow
Change-Id: I58c5416239760f4a50a138bbe4a97c85f15126b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127071 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.hxx3
-rw-r--r--basctl/source/basicide/baside2b.cxx6
2 files changed, 5 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index e59c148bc3b5..8d07cd81ddc1 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -20,6 +20,7 @@
#pragma once
#include <memory>
+#include <mutex>
#include <layout.hxx>
#include "breakpoint.hxx"
#include "linenumberwindow.hxx"
@@ -73,7 +74,7 @@ private:
ModulWindow& rModulWindow;
rtl::Reference< ChangesListener > listener_;
- osl::Mutex mutex_;
+ std::mutex mutex_;
css::uno::Reference< css::beans::XMultiPropertySet >
notifier_;
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 9da55fa318a8..54be8d956b64 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -202,7 +202,7 @@ private:
virtual void SAL_CALL disposing(lang::EventObject const &) override
{
- osl::MutexGuard g(editor_.mutex_);
+ std::unique_lock g(editor_.mutex_);
editor_.notifier_.clear();
}
@@ -255,7 +255,7 @@ EditorWindow::EditorWindow (vcl::Window* pParent, ModulWindow* pModulWindow) :
officecfg::Office::Common::Font::SourceViewFont::get(),
UNO_QUERY_THROW);
{
- osl::MutexGuard g(mutex_);
+ std::unique_lock g(mutex_);
notifier_ = n;
}
const Sequence<OUString> aPropertyNames{"FontHeight", "FontName"};
@@ -278,7 +278,7 @@ void EditorWindow::dispose()
Reference< beans::XMultiPropertySet > n;
{
- osl::MutexGuard g(mutex_);
+ std::unique_lock g(mutex_);
n = notifier_;
}
if (n.is()) {