summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews5.cxx')
-rw-r--r--sd/source/ui/view/drviews5.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx
index d632d24a46d0..7d92475aac0e 100644
--- a/sd/source/ui/view/drviews5.cxx
+++ b/sd/source/ui/view/drviews5.cxx
@@ -581,16 +581,14 @@ css::uno::Reference<css::accessibility::XAccessible>
{
if (GetViewShellBase().GetController() != nullptr)
{
- accessibility::AccessibleDrawDocumentView* pDocumentView =
+ rtl::Reference<accessibility::AccessibleDrawDocumentView> pDocumentView =
new accessibility::AccessibleDrawDocumentView (
pWindow,
this,
GetViewShellBase().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", "DrawViewShell::CreateAccessibleDocumentView: no controller");