summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-17 18:10:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-18 18:18:56 +0100
commita22772c4393f4b0a3d1a838f074c4d51be762388 (patch)
treec042d88a80f89271ee16c476039af0b3c39e302b /ucbhelper
parent580b5227144c6d71b1dc2663fc741ed29f119767 (diff)
osl::Mutex->std::mutex in ucbhelper::PropertyValueSet
Change-Id: Ie4d3392e26a24ff3ffd9869809bb48bee7fcc2bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127067 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/propertyvalueset.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx
index 0255a14337a6..1c2345a8c4c0 100644
--- a/ucbhelper/source/provider/propertyvalueset.cxx
+++ b/ucbhelper/source/provider/propertyvalueset.cxx
@@ -158,7 +158,7 @@ PropertyValueSet::~PropertyValueSet()
template <class T, T ucbhelper_impl::PropertyValue::*_member_name_>
T PropertyValueSet::getValue(PropsSet nTypeName, sal_Int32 columnIndex)
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
T aValue {}; /* default ctor */
@@ -352,7 +352,7 @@ Any SAL_CALL PropertyValueSet::getObject(
sal_Int32 columnIndex,
const Reference< XNameAccess >& )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
Any aValue;
@@ -510,7 +510,7 @@ Reference< XArray > SAL_CALL PropertyValueSet::getArray( sal_Int32 columnIndex )
// virtual
sal_Int32 SAL_CALL PropertyValueSet::findColumn( const OUString& columnName )
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
if ( !columnName.isEmpty() )
{
@@ -530,7 +530,7 @@ sal_Int32 SAL_CALL PropertyValueSet::findColumn( const OUString& columnName )
const Reference< XTypeConverter >& PropertyValueSet::getTypeConverter()
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
if ( !m_bTriedToGetTypeConverter && !m_xTypeConverter.is() )
{
@@ -548,7 +548,7 @@ const Reference< XTypeConverter >& PropertyValueSet::getTypeConverter()
template <class T, T ucbhelper_impl::PropertyValue::*_member_name_>
void PropertyValueSet::appendValue(const OUString& rPropName, PropsSet nTypeName, const T& rValue)
{
- osl::MutexGuard aGuard( m_aMutex );
+ std::unique_lock aGuard( m_aMutex );
ucbhelper_impl::PropertyValue aNewValue;
aNewValue.sPropertyName = rPropName;