From a32af6867b7fdc6dccf78ffbb63573fd4224883b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 31 Jul 2021 19:05:10 +0200 Subject: osl::Mutex->std::mutex in SvXMLExport::SetError Change-Id: Ibc72ed31df8291587d39dd46f604572b7ca1a147 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119753 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/core/xmlexp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index 3159aa44e683..f45afea8aaa5 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -21,11 +21,11 @@ #include #include +#include #include #include #include -#include #include #include #include @@ -2269,8 +2269,8 @@ void SvXMLExport::SetError( const Reference& rLocator ) { // allow multi-threaded access to the cancel() method - static osl::Mutex aMutex; - osl::MutexGuard aGuard(aMutex); + static std::mutex aMutex; + std::lock_guard aGuard(aMutex); // maintain error flags if ( ( nId & XMLERROR_FLAG_ERROR ) != 0 ) -- cgit