diff options
author | Noel Grandin <noel@peralex.com> | 2013-06-04 17:16:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-05 08:13:23 +0200 |
commit | 95c0d568fdcd0da939c891d861bb470b28079170 (patch) | |
tree | ca4e4108178ec1176fd1a976df6f31a08d590210 /accessibility/source | |
parent | a1afcae81ca3c4b6bb240263b3259090d48c7715 (diff) |
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise.
Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'accessibility/source')
3 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx index bd56b697ba7b..ad850610ebb6 100644 --- a/accessibility/source/extended/AccessibleBrowseBox.cxx +++ b/accessibility/source/extended/AccessibleBrowseBox.cxx @@ -95,7 +95,7 @@ void SAL_CALL AccessibleBrowseBox::disposing() m_pImpl->m_pTable = NULL; m_pImpl->m_pColumnHeaderBar = NULL; m_pImpl->m_pRowHeaderBar = NULL; - m_pImpl->m_aCreator = Reference< XAccessible >(); + m_pImpl->m_aCreator.clear(); Reference< XAccessible > xTable = m_pImpl->mxTable; diff --git a/accessibility/source/extended/AccessibleGridControl.cxx b/accessibility/source/extended/AccessibleGridControl.cxx index ace45d2c8c3e..9c97e96a174c 100644 --- a/accessibility/source/extended/AccessibleGridControl.cxx +++ b/accessibility/source/extended/AccessibleGridControl.cxx @@ -93,7 +93,7 @@ void SAL_CALL AccessibleGridControl::disposing() m_pImpl->m_pColumnHeaderBar = NULL; m_pImpl->m_pRowHeaderBar = NULL; m_pImpl->m_pCell = NULL; - m_pImpl->m_aCreator = Reference< XAccessible >(); + m_pImpl->m_aCreator.clear(); Reference< XAccessible > xTable = m_pImpl->m_xTable; diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx index 146003bac2f5..bcaec362b102 100644 --- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx +++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx @@ -245,7 +245,7 @@ namespace accessibility m_pBrowseBox = NULL; m_xControlAccessible.clear(); - m_aContext = Reference< XAccessibleContext >( ); + m_aContext.clear(); // NO dispose of the inner object there: it is the XAccessible of an window, and disposing // it would delete the respective VCL window } |