diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-18 11:30:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-19 17:40:47 +0200 |
commit | 7ffa7e56c0202227f2ec75fce5234bb2bf89e455 (patch) | |
tree | af56d098ea2fcaae7383eb5ff6b6bc5f67a4a131 /accessibility | |
parent | 5baac4e53128d3c0fc73b9918dc9a9c2777ace08 (diff) |
loplugin: new global analysis locking2
look for methods where we don't need to guard access
to the field, because the field is never modified
Change-Id: I62c33cc3f52881557515765d3733c4afc78547aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155836
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
3 files changed, 0 insertions, 4 deletions
diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index 44ac61e9252a..9e7b75cf1488 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -261,8 +261,6 @@ namespace accessibility sal_Int64 SAL_CALL AccessibleIconChoiceCtrlEntry::getAccessibleIndexInParent( ) { - ::osl::MutexGuard aGuard( m_aMutex ); - return m_nIndex; } diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx index e1bb9cb18883..5339f93824a9 100644 --- a/accessibility/source/standard/vclxaccessiblelistitem.cxx +++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx @@ -211,7 +211,6 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleListItem::getAccessibleParent( sal_Int64 SAL_CALL VCLXAccessibleListItem::getAccessibleIndexInParent( ) { - ::osl::MutexGuard aGuard( m_aMutex ); return m_nIndexInParent; } diff --git a/accessibility/source/standard/vclxaccessibletoolbox.cxx b/accessibility/source/standard/vclxaccessibletoolbox.cxx index a1a2d5b03d54..aaea955d10f6 100644 --- a/accessibility/source/standard/vclxaccessibletoolbox.cxx +++ b/accessibility/source/standard/vclxaccessibletoolbox.cxx @@ -70,7 +70,6 @@ namespace sal_Int64 SAL_CALL OToolBoxWindowItemContext::getAccessibleIndexInParent( ) { - ::osl::MutexGuard aGuard( m_aMutex ); return m_nIndexInParent; } |