From bc613dc5dba6a9fc2ad2bdb3fbd160ba7615788f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Dec 2021 18:50:35 +0200 Subject: [PATCH] osl::Mutex->std::mutex in FastSaxParserImpl Change-Id: I5f93c3d1373f8d5a95d8069b1f8381c45e11a875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127916 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/source/fastparser/fastparser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 97435e2219ea..cc7dd91b82ab 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -286,7 +286,7 @@ private: void DefineNamespace( const OString& rPrefix, const OUString& namespaceURL ); private: - osl::Mutex maMutex; ///< Protecting whole parseStream() execution + std::mutex maMutex; ///< Protecting whole parseStream() execution ::rtl::Reference< FastLocatorImpl > mxDocumentLocator; NamespaceMap maNamespaceMap; @@ -825,7 +825,7 @@ void FastSaxParserImpl::parseStream(const InputSource& rStructSource) xmlInitParser(); // Only one text at one time - MutexGuard guard( maMutex ); + std::unique_lock guard( maMutex ); pushEntity(maData, rStructSource); Entity& rEntity = getEntity();