diff options
-rw-r--r-- | cppuhelper/source/typemanager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index eb6d7246009e..857018e204ec 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -13,6 +13,7 @@ #include <cstddef> #include <cstdlib> #include <cstring> +#include <mutex> #include <set> #include <stack> #include <string_view> @@ -1668,7 +1669,7 @@ private: css::uno::Sequence< css::uno::TypeClass > types_; bool deep_; - osl::Mutex mutex_; + std::mutex mutex_; std::stack< Position > positions_; OUString current_; }; @@ -1678,7 +1679,7 @@ Enumeration::nextTypeDescription() { OUString name; { - osl::MutexGuard g(mutex_); + std::lock_guard g(mutex_); if (positions_.empty()) { throw css::container::NoSuchElementException( "exhausted XTypeDescriptionEnumeration", |