diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-17 16:00:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-17 16:00:56 +0100 |
commit | 03f20846eb4219947e93cf48a5e0c46398bd8a04 (patch) | |
tree | 139b5ee5ad4da29e2da58eeda87f012fcb991832 /sw | |
parent | d26da8701469db73bc06adc2b59ccb5b6f862fff (diff) |
Pass map by pointer (just like all the other SwAccessible... ctors do)
Change-Id: Idc3daacd258b4033f81cee6b59dfa6a6c2e458da
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accmap.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/access/accpara.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
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<SwTextNode*>(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 *(); |