summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-02-15 14:14:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-16 06:27:59 +0000
commit3ca80266b730d7557dc41568b62cc29f932706b4 (patch)
treed924183b534733242cf79327412a0277e85afa68 /chart2
parentacf37c3a0b54a46de29bafd27ec9b0618bd2d84a (diff)
osl::Mutex->std::mutex in ChartView
Change-Id: Iebb2d1352b76108e803605dc856407ce2484e5a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147098 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/inc/ChartView.hxx3
-rw-r--r--chart2/source/view/main/ChartView.cxx4
2 files changed, 4 insertions, 3 deletions
diff --git a/chart2/inc/ChartView.hxx b/chart2/inc/ChartView.hxx
index d0f64d047b05..b521f2e8715b 100644
--- a/chart2/inc/ChartView.hxx
+++ b/chart2/inc/ChartView.hxx
@@ -40,6 +40,7 @@
#include <vector>
#include <memory>
+#include <mutex>
#include <vcl/timer.hxx>
@@ -247,7 +248,7 @@ private: //member
css::awt::Rectangle m_aResultingDiagramRectangleExcludingAxes;
TimeBasedInfo maTimeBased;
- osl::Mutex maTimeMutex;
+ std::mutex maTimeMutex;
};
}
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index da37dd659f9e..2f87382bde56 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -1357,7 +1357,7 @@ void ChartView::createShapes()
{
SolarMutexGuard aSolarGuard;
- osl::MutexGuard aTimedGuard(maTimeMutex);
+ std::unique_lock aTimedGuard(maTimeMutex);
if(mrChartModel.isTimeBased())
{
maTimeBased.bTimeBased = true;
@@ -1844,7 +1844,7 @@ void ChartView::dumpAsXml(xmlTextWriterPtr pWriter) const
void ChartView::setViewDirty()
{
- osl::MutexGuard aGuard(maTimeMutex);
+ std::unique_lock aGuard(maTimeMutex);
m_bViewDirty = true;
}