summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-02-24 14:59:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-27 11:08:06 +0000
commite43606a5a5c7ef44d4bab2f9bf526a8656775bd4 (patch)
tree00683b2d80400fbc17d1eff1f1b359891ce9cf0e /reportdesign
parent450d195bb8c09866c6988a3b3ac82dbe349f7849 (diff)
osl::Mutex->std::mutex in rptxml::ExportDocumentHandler
Change-Id: Ida7fbf7a619f4a6beb9f05107110e9c9a0b60813 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147861 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx2
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index aa064caef2ef..b5f3383b3061 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -273,7 +273,7 @@ void SAL_CALL ExportDocumentHandler::setDocumentLocator(const uno::Reference< xm
}
void SAL_CALL ExportDocumentHandler::initialize( const uno::Sequence< uno::Any >& _aArguments )
{
- ::osl::MutexGuard aGuard(m_aMutex);
+ std::unique_lock aGuard(m_aMutex);
comphelper::SequenceAsHashMap aArgs(_aArguments);
m_xDelegatee = aArgs.getUnpackedValueOrDefault("DocumentHandler",m_xDelegatee);
m_xModel = aArgs.getUnpackedValueOrDefault("Model",m_xModel);
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
index 87959ccea7e1..93465e674242 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.hxx
@@ -30,6 +30,7 @@
#include <com/sun/star/chart2/data/XDatabaseDataProvider.hpp>
#include <comphelper/uno3.hxx>
#include <xmloff/xmltoken.hxx>
+#include <mutex>
namespace rptxml
{
@@ -74,7 +75,7 @@ private:
virtual ~ExportDocumentHandler() override;
- ::osl::Mutex m_aMutex;
+ std::mutex m_aMutex;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xDelegatee;
css::uno::Reference< css::uno::XAggregation > m_xProxy;