summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-11 16:17:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-11 16:17:55 +0200
commitafd9bf19aec34475c915ba91f8fdc38b5a68f0b1 (patch)
tree817c009124388f149d66576933453525bd198600 /accessibility
parentf48cbaac0a2a7278f366a3b0118b399c0a938a44 (diff)
loplugin:refcounting
Change-Id: Ia7ec56c754d6eafcd4c6d981a0d8ca03af23a18e
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/standard/vclxaccessiblelistitem.hxx4
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/inc/standard/vclxaccessiblelistitem.hxx b/accessibility/inc/standard/vclxaccessiblelistitem.hxx
index fb5cab491606..cbf874e41cb8 100644
--- a/accessibility/inc/standard/vclxaccessiblelistitem.hxx
+++ b/accessibility/inc/standard/vclxaccessiblelistitem.hxx
@@ -66,7 +66,7 @@ protected:
/// client id in the AccessibleEventNotifier queue
sal_uInt32 m_nClientId;
- css::uno::Reference< VCLXAccessibleList > m_xParent;
+ rtl::Reference< VCLXAccessibleList > m_xParent;
css::uno::Reference< css::accessibility::XAccessibleContext > m_xParentContext;
protected:
@@ -88,7 +88,7 @@ public:
is our parent accessible object
*/
VCLXAccessibleListItem(sal_Int32 _nIndexInParent,
- const css::uno::Reference< VCLXAccessibleList >& _xParent);
+ const rtl::Reference< VCLXAccessibleList >& _xParent);
void NotifyAccessibleEvent( sal_Int16 _nEventId, const css::uno::Any& _aOldValue, const css::uno::Any& _aNewValue );
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index a7e079553940..0ee2bb164080 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -61,7 +61,7 @@ using namespace ::com::sun::star;
// Ctor() and Dtor()
-VCLXAccessibleListItem::VCLXAccessibleListItem(sal_Int32 _nIndexInParent, const Reference< VCLXAccessibleList >& _xParent)
+VCLXAccessibleListItem::VCLXAccessibleListItem(sal_Int32 _nIndexInParent, const rtl::Reference< VCLXAccessibleList >& _xParent)
: VCLXAccessibleListItem_BASE(m_aMutex)
, m_nIndexInParent(_nIndexInParent)
, m_bSelected(false)
@@ -214,7 +214,7 @@ Reference< XAccessible > SAL_CALL VCLXAccessibleListItem::getAccessibleParent(
{
::osl::MutexGuard aGuard( m_aMutex );
- return m_xParent;
+ return m_xParent.get();
}
sal_Int32 SAL_CALL VCLXAccessibleListItem::getAccessibleIndexInParent( ) throw (RuntimeException, std::exception)