From e05e05d26ea1421c919a789c9c1afd393e0c19b2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 4 Aug 2021 21:34:03 +0200 Subject: osl::Mutex->std::mutex in fileaccess:XRow_impl Change-Id: I197c35b8405db418870354b0d0791dad6d5ea6d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120024 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucb/source/ucp/file/filrow.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ucb/source/ucp/file/filrow.cxx') diff --git a/ucb/source/ucp/file/filrow.cxx b/ucb/source/ucp/file/filrow.cxx index 54ba6140f040..e5957d5afee3 100644 --- a/ucb/source/ucp/file/filrow.cxx +++ b/ucb/source/ucp/file/filrow.cxx @@ -232,7 +232,7 @@ XRow_impl::getObject( { if( isIndexOutOfBounds( columnIndex ) ) throw sdbc::SQLException( THROW_WHERE, uno::Reference< uno::XInterface >(), OUString(), 0, uno::Any() ); - osl::MutexGuard aGuard( m_aMutex ); + std::scoped_lock aGuard( m_aMutex ); uno::Any Value = m_aValueMap[columnIndex - 1]; m_nWasNull = !Value.hasValue(); return Value; @@ -285,7 +285,7 @@ template T XRow_impl::getValue(sal_Int32 columnIndex) { T aValue{}; - osl::MutexGuard aGuard( m_aMutex ); + std::scoped_lock aGuard( m_aMutex ); m_nWasNull = ::convert( m_pMyShell, m_xTypeConverter, m_aValueMap[ --columnIndex ], aValue ); return aValue; } -- cgit