diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-23 18:29:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-27 11:49:34 +0100 |
commit | a709a654a5d6a761db836aca69c6d53244ae8817 (patch) | |
tree | a72ed46b4cbf44974cb86c89ec26df95b6fb6243 /ucbhelper | |
parent | 8229902963404204cc3b3615c4e75aac42c56933 (diff) |
osl::Mutex->std::mutex in ResultSetMetaData_Impl
Change-Id: I58d67d1d52241eeb01b98972779238b7abae5a68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127545
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/provider/resultsetmetadata.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index 6d9449f99953..1b989229c60e 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -41,6 +41,7 @@ #include <ucbhelper/macros.hxx> #include <ucbhelper/resultsetmetadata.hxx> #include <cppuhelper/queryinterface.hxx> +#include <mutex> using namespace com::sun::star::beans; using namespace com::sun::star::io; @@ -55,7 +56,7 @@ namespace ucbhelper_impl { struct ResultSetMetaData_Impl { - osl::Mutex m_aMutex; + std::mutex m_aMutex; std::vector< ::ucbhelper::ResultSetColumnData > m_aColumnData; bool m_bObtainedTypes; @@ -275,7 +276,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) { // No type given. Try UCB's Properties Manager... - osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex ); + std::unique_lock aGuard( m_pImpl->m_aMutex ); if ( !m_pImpl->m_bObtainedTypes ) { |