osl::Mutex->std::mutex in SaxExpatParser
Change-Id: I9d99497dfbc67cd4dd690da9db58aab0db114d36 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134021 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
34948e6777
commit
cdf8e971d5
@@ -20,6 +20,7 @@
|
||||
#include <string.h>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <utility>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
@@ -146,7 +147,7 @@ constexpr OUStringLiteral gsCDATA = u"CDATA";
|
||||
class SaxExpatParser_Impl
|
||||
{
|
||||
public: // module scope
|
||||
Mutex aMutex;
|
||||
std::mutex aMutex;
|
||||
bool m_bEnableDoS; // fdo#60471 thank you Adobe Illustrator
|
||||
|
||||
css::uno::Reference< XDocumentHandler > rDocumentHandler;
|
||||
@@ -378,7 +379,7 @@ SaxExpatParser::initialize(css::uno::Sequence< css::uno::Any > const& rArguments
|
||||
OUString str;
|
||||
if ((rArguments[0] >>= str) && "DoSmeplease" == str)
|
||||
{
|
||||
MutexGuard guard( m_pImpl->aMutex );
|
||||
std::unique_lock guard( m_pImpl->aMutex );
|
||||
m_pImpl->m_bEnableDoS = true;
|
||||
}
|
||||
}
|
||||
@@ -412,7 +413,7 @@ public:
|
||||
void SaxExpatParser::parseStream( const InputSource& structSource)
|
||||
{
|
||||
// Only one text at one time
|
||||
MutexGuard guard( m_pImpl->aMutex );
|
||||
std::unique_lock guard( m_pImpl->aMutex );
|
||||
|
||||
|
||||
struct Entity entity;
|
||||
|
Reference in New Issue
Block a user