summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-10-20 12:52:03 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-10-21 13:48:42 +0200
commiteff3e9b8a576863c01f4244a5628cda64f48a363 (patch)
tree756672bd1e38417153d796e91c9bd1ce1a7dbbfa /winaccessibility
parentb0bf4043d320f69d1cf9dfcbcd6a8eac4df94015 (diff)
wina11y: Indent try block
Change-Id: I89a4ed514e1c24e683b081d04f72cd62ede80065 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158257 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/MAccessible.cxx46
1 files changed, 23 insertions, 23 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx
index e8f29c8192d2..98f15fdf230b 100644
--- a/winaccessibility/source/UAccCOM/MAccessible.cxx
+++ b/winaccessibility/source/UAccCOM/MAccessible.cxx
@@ -2711,34 +2711,34 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CMAccessible::get_attributes(/*[out]*/ BSTR *p
SolarMutexGuard g;
try {
- if (m_isDestroy) return S_FALSE;
+ if (m_isDestroy) return S_FALSE;
- if (!m_xAccessible.is())
- return E_FAIL;
+ if (!m_xAccessible.is())
+ return E_FAIL;
- Reference<XAccessibleContext> pRContext = m_xAccessible->getAccessibleContext();
- if( !pRContext.is() )
- {
- return E_FAIL;
- }
- Reference<XAccessibleExtendedAttributes> pRXI(pRContext,UNO_QUERY);
- if( !pRXI.is() )
- return E_FAIL;
- else
- {
- css::uno::Reference<css::accessibility::XAccessibleExtendedAttributes> pRXAttr;
- pRXAttr = pRXI.get();
- css::uno::Any anyVal = pRXAttr->getExtendedAttributes();
+ Reference<XAccessibleContext> pRContext = m_xAccessible->getAccessibleContext();
+ if( !pRContext.is() )
+ {
+ return E_FAIL;
+ }
+ Reference<XAccessibleExtendedAttributes> pRXI(pRContext,UNO_QUERY);
+ if( !pRXI.is() )
+ return E_FAIL;
+ else
+ {
+ css::uno::Reference<css::accessibility::XAccessibleExtendedAttributes> pRXAttr;
+ pRXAttr = pRXI.get();
+ css::uno::Any anyVal = pRXAttr->getExtendedAttributes();
- OUString val;
- anyVal >>= val;
+ OUString val;
+ anyVal >>= val;
- if(*pAttr)
- SysFreeString(*pAttr);
- *pAttr = SysAllocString(o3tl::toW(val.getStr()));
+ if(*pAttr)
+ SysFreeString(*pAttr);
+ *pAttr = SysAllocString(o3tl::toW(val.getStr()));
- return S_OK;
- }
+ return S_OK;
+ }
} catch(...) { return E_FAIL; }
}