diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-31 19:05:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-01 13:54:57 +0200 |
commit | a32af6867b7fdc6dccf78ffbb63573fd4224883b (patch) | |
tree | dcfb75da7fa9980c3d131d3d8d7c094124c4af3d /xmloff | |
parent | 5b5d3d90f3d91f94b50a9c6a98bece0fd7e6593c (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlexp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sal/config.h> #include <sal/log.hxx> +#include <mutex> #include <stack> #include <optional> #include <xmloff/unointerfacetouniqueidentifiermapper.hxx> -#include <osl/mutex.hxx> #include <tools/urlobj.hxx> #include <vcl/graph.hxx> #include <comphelper/genericpropertyset.hxx> @@ -2269,8 +2269,8 @@ void SvXMLExport::SetError( const Reference<XLocator>& 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 ) |