diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-03-24 17:03:31 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-03-24 18:00:45 +0100 |
commit | f8a3748c9bac4b323a6eea8b079949c82af8703e (patch) | |
tree | ea94847df174082b18b40569d9458e1db172b34e /sw | |
parent | cd2b96e2d166d2a3ec074cdae029a51bc3d401f4 (diff) |
sw: remove SolarMutexGuards from SwAccessible* constructors
Clearly the mutex must be locked by the caller already.
Change-Id: I2c8a76f5b04751610ed07819343994b75bea4f4f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/acccell.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/access/accfootnote.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/accframebase.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/accheaderfooter.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/access/accmap.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/access/accpage.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/accpara.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/acctable.cxx | 4 |
8 files changed, 3 insertions, 15 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index a33276248b08..85b733f74bcd 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -104,7 +104,6 @@ SwAccessibleCell::SwAccessibleCell(std::shared_ptr<SwAccessibleMap> const& pInit , m_aSelectionHelper( *this ) , m_bIsSelected( false ) { - SolarMutexGuard aGuard; OUString sBoxName( pCellFrame->GetTabBox()->GetName() ); SetName( sBoxName ); diff --git a/sw/source/core/access/accfootnote.cxx b/sw/source/core/access/accfootnote.cxx index 5faefac2f2f1..f28fef02dd46 100644 --- a/sw/source/core/access/accfootnote.cxx +++ b/sw/source/core/access/accfootnote.cxx @@ -47,8 +47,6 @@ SwAccessibleFootnote::SwAccessibleFootnote( bIsEndnote ? AccessibleRole::END_NOTE : AccessibleRole::FOOTNOTE, pFootnoteFrame ) { - SolarMutexGuard aGuard; - sal_uInt16 nResId = bIsEndnote ? STR_ACCESS_ENDNOTE_NAME : STR_ACCESS_FOOTNOTE_NAME; diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx index 8329ff586e6b..53572cbd1deb 100644 --- a/sw/source/core/access/accframebase.cxx +++ b/sw/source/core/access/accframebase.cxx @@ -130,8 +130,6 @@ SwAccessibleFrameBase::SwAccessibleFrameBase( SwAccessibleContext( pInitMap, nInitRole, pFlyFrame ), bIsSelected( false ) { - SolarMutexGuard aGuard; - const SwFrameFormat *pFrameFormat = pFlyFrame->GetFormat(); const_cast< SwFrameFormat * >( pFrameFormat )->Add( this ); diff --git a/sw/source/core/access/accheaderfooter.cxx b/sw/source/core/access/accheaderfooter.cxx index f32a0b8b0d14..683c02bf93dd 100644 --- a/sw/source/core/access/accheaderfooter.cxx +++ b/sw/source/core/access/accheaderfooter.cxx @@ -40,8 +40,6 @@ SwAccessibleHeaderFooter::SwAccessibleHeaderFooter( const SwHeaderFrame* pHdFrame ) : SwAccessibleContext( pInitMap, AccessibleRole::HEADER, pHdFrame ) { - SolarMutexGuard aGuard; - OUString sArg( OUString::number( pHdFrame->GetPhyPageNum() ) ); SetName( GetResource( STR_ACCESS_HEADER_NAME, &sArg ) ); } @@ -51,8 +49,6 @@ SwAccessibleHeaderFooter::SwAccessibleHeaderFooter( const SwFooterFrame* pFtFrame ) : SwAccessibleContext( pInitMap, AccessibleRole::FOOTER, pFtFrame ) { - SolarMutexGuard aGuard; - OUString sArg( OUString::number( pFtFrame->GetPhyPageNum() ) ); SetName( GetResource( STR_ACCESS_FOOTER_NAME, &sArg ) ); } diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index bfd93796c63b..0d4a083b6ac0 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1838,6 +1838,7 @@ uno::Reference<XAccessible> SwAccessibleMap::GetDocumentPreview( uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrame *pFrame, bool bCreate ) { + DBG_TESTSOLARMUTEX(); uno::Reference < XAccessible > xAcc; uno::Reference < XAccessible > xOldCursorAcc; bool bOldShapeSelected = false; diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx index 2486fc630e50..91a7e3f0d58b 100644 --- a/sw/source/core/access/accpage.cxx +++ b/sw/source/core/access/accpage.cxx @@ -117,8 +117,6 @@ SwAccessiblePage::SwAccessiblePage(std::shared_ptr<SwAccessibleMap> const& pInit OSL_ENSURE( pInitMap != nullptr, "need map" ); OSL_ENSURE( pFrame->IsPageFrame(), "need page frame" ); - SolarMutexGuard aGuard; - OUString sPage = OUString::number( static_cast<const SwPageFrame*>( GetFrame() )->GetPhyPageNum() ); SetName( GetResource( STR_ACCESS_PAGE_NAME, &sPage ) ); diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index b5185abd15ba..0c4e43ef46b1 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -544,8 +544,6 @@ SwAccessibleParagraph::SwAccessibleParagraph( , mpParaChangeTrackInfo( new SwParaChangeTrackingInfo( rTextFrame ) ) // #i108125# , m_bLastHasSelection(false) //To add TEXT_SELECTION_CHANGED event { - SolarMutexGuard aGuard; - bIsHeading = IsHeading(); //Get the real heading level, Heading1 ~ Heading10 nHeadingLevel = GetRealHeadingLevel(); diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index b237242f3d62..6e324781367e 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -767,8 +767,6 @@ SwAccessibleTable::SwAccessibleTable( SwAccessibleContext( pInitMap, AccessibleRole::TABLE, pTabFrame ), mpTableData( nullptr ) { - SolarMutexGuard aGuard; - const SwFrameFormat *pFrameFormat = pTabFrame->GetFormat(); const_cast< SwFrameFormat * >( pFrameFormat )->Add( this ); @@ -1070,6 +1068,8 @@ uno::Reference< XAccessibleTable > SAL_CALL uno::Reference< XAccessibleTable > SAL_CALL SwAccessibleTable::getAccessibleColumnHeaders( ) { + SolarMutexGuard aGuard; + // #i87532# - assure that return accessible object is empty, // if no column header exists. SwAccessibleTableColHeaders* pTableColHeaders = |