diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-02 08:28:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-04 08:52:39 +0100 |
commit | 28239c40430ec4e613d9d936614c5c3853c332c4 (patch) | |
tree | 0fa6bc36c05f8f42a0799b884ed38eb3e569ff90 /unotools/source/accessibility/accessiblerelationsethelper.cxx | |
parent | 85b7e7fdd7f283a3084e2db0dd8e71a48fac228d (diff) |
simplify UNO getTypes methods
Change-Id: Ia8b07edec54527fb4904536fabb03a18e8452550
Reviewed-on: https://gerrit.libreoffice.org/68659
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/accessibility/accessiblerelationsethelper.cxx')
-rw-r--r-- | unotools/source/accessibility/accessiblerelationsethelper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx index f50d641e87ea..0e2a57773bb1 100644 --- a/unotools/source/accessibility/accessiblerelationsethelper.cxx +++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx @@ -210,12 +210,11 @@ void AccessibleRelationSetHelper::AddRelation(const AccessibleRelation& rRelatio uno::Sequence< css::uno::Type> AccessibleRelationSetHelper::getTypes() { - osl::MutexGuard aGuard (maMutex); - css::uno::Sequence< css::uno::Type> aTypeSequence { + static const uno::Sequence< css::uno::Type> aTypes { cppu::UnoType<XAccessibleRelationSet>::get(), cppu::UnoType<lang::XTypeProvider>::get() }; - return aTypeSequence; + return aTypes; } uno::Sequence<sal_Int8> SAL_CALL AccessibleRelationSetHelper::getImplementationId() |