diff options
Diffstat (limited to 'accessibility/source/extended/textwindowaccessibility.cxx')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index e975b62688b3..4b37b1c78dd7 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1296,8 +1296,7 @@ Document::retrieveParagraphRelationSet( Paragraph const * pParagraph ) { ::osl::MutexGuard aInternalGuard( GetMutex() ); - ::utl::AccessibleRelationSetHelper* pRelationSetHelper = new ::utl::AccessibleRelationSetHelper(); - css::uno::Reference< css::accessibility::XAccessibleRelationSet > xSet = pRelationSetHelper; + rtl::Reference<::utl::AccessibleRelationSetHelper> pRelationSetHelper = new ::utl::AccessibleRelationSetHelper(); Paragraphs::iterator aPara( m_xParagraphs->begin() + pParagraph->getNumber() ); @@ -1315,7 +1314,7 @@ Document::retrieveParagraphRelationSet( Paragraph const * pParagraph ) pRelationSetHelper->AddRelation( aRelation ); } - return xSet; + return pRelationSetHelper; } // virtual |