diff options
Diffstat (limited to 'sd/source/ui/view/outlnvsh.cxx')
-rw-r--r-- | sd/source/ui/view/outlnvsh.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index 7068a519a96a..f106b943a8b1 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -1828,16 +1828,14 @@ css::uno::Reference<css::accessibility::XAccessible> OSL_ASSERT (GetViewShell()!=nullptr); if (GetViewShell()->GetController() != nullptr) { - ::accessibility::AccessibleOutlineView* pDocumentView = + rtl::Reference<::accessibility::AccessibleOutlineView> pDocumentView = new ::accessibility::AccessibleOutlineView ( pWindow, this, GetViewShell()->GetController(), pWindow->GetAccessibleParentWindow()->GetAccessible()); pDocumentView->Init(); - return css::uno::Reference<css::accessibility::XAccessible> - (static_cast< css::uno::XWeak*>(pDocumentView), - css::uno::UNO_QUERY); + return pDocumentView; } SAL_WARN("sd", "OutlineViewShell::CreateAccessibleDocumentView: no controller"); |