From 03f20846eb4219947e93cf48a5e0c46398bd8a04 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 17 Feb 2016 16:00:31 +0100 Subject: Pass map by pointer (just like all the other SwAccessible... ctors do) Change-Id: Idc3daacd258b4033f81cee6b59dfa6a6c2e458da --- sw/source/core/access/accmap.cxx | 2 +- sw/source/core/access/accpara.cxx | 4 ++-- sw/source/core/access/accpara.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sw') diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 1ddc0af5a2fa..2979c7c1a813 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1887,7 +1887,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrame *pFrame, { case FRM_TXT: mnPara++; - pAcc = new SwAccessibleParagraph( *this, + pAcc = new SwAccessibleParagraph( this, static_cast< const SwTextFrame& >( *pFrame ) ); break; case FRM_HEADER: diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 3d0283d7638b..6294a6281d97 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -531,10 +531,10 @@ void SwAccessibleParagraph::_InvalidateFocus() } SwAccessibleParagraph::SwAccessibleParagraph( - SwAccessibleMap& rInitMap, + SwAccessibleMap* pInitMap, const SwTextFrame& rTextFrame ) : SwClient( const_cast(rTextFrame.GetTextNode()) ) // #i108125# - , SwAccessibleContext( &rInitMap, AccessibleRole::PARAGRAPH, &rTextFrame ) + , SwAccessibleContext( pInitMap, AccessibleRole::PARAGRAPH, &rTextFrame ) , sDesc() , pPortionData( nullptr ) , pHyperTextData( nullptr ) diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx index 60444bf3a234..e86ea7a1d531 100644 --- a/sw/source/core/access/accpara.hxx +++ b/sw/source/core/access/accpara.hxx @@ -237,7 +237,7 @@ protected: public: - SwAccessibleParagraph( SwAccessibleMap& rInitMap, + SwAccessibleParagraph( SwAccessibleMap* pInitMap, const SwTextFrame& rTextFrame ); inline operator css::accessibility::XAccessibleText *(); -- cgit