diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/doc.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 1 | ||||
-rw-r--r-- | sw/source/core/frmedt/fecopy.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/unocore/unoftn.cxx | 1 |
5 files changed, 3 insertions, 13 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 5ec175e4fb9a..722e2bb6a6fb 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1416,8 +1416,6 @@ OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex(sal_Int32 nIndex) OUString strTypeName; SwFieldMgr aMgr; SwTextField* pTextField = nullptr; - SwTextNode* pTextNd = const_cast<SwTextNode*>( GetTextNode() ); - SwIndex fldIndex( pTextNd, nIndex ); sal_Int32 nFieldIndex = GetPortionData().GetFieldIndex(nIndex); if (nFieldIndex >= 0) { diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 2a2684862b29..06fc61b466fb 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1487,12 +1487,9 @@ bool SwDoc::HasInvisibleContent() const for( sal_uLong n = GetNodes().Count()-1; n; --n) { SwTextNode* pTextNd = GetNodes()[ n ]->GetTextNode(); - if ( pTextNd ) - { - SwPaM aPam(*pTextNd, 0, *pTextNd, pTextNd->GetText().getLength()); - if( pTextNd->HasHiddenCharAttribute( true ) || ( pTextNd->HasHiddenCharAttribute( false ) ) ) - return true; - } + if ( pTextNd && + ( pTextNd->HasHiddenCharAttribute( true ) || pTextNd->HasHiddenCharAttribute( false ) ) ) + return true; } for(auto pSectFormat : GetSections()) diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index 314e4c84ef27..0ccc138ce105 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -1431,7 +1431,6 @@ void SwRangeRedline::DelCopyOfSection(size_t nMyPos) } } - SwPosition aEnd( *pEnd ); *GetPoint() = *pEnd; *GetMark() = *pEnd; DeleteMark(); diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx index 2cf915eb5c29..444f4de516b3 100644 --- a/sw/source/core/frmedt/fecopy.cxx +++ b/sw/source/core/frmedt/fecopy.cxx @@ -1045,9 +1045,6 @@ bool SwFEShell::Paste( SwDoc* pClpDoc ) // ** // ** Update SwDoc::Append, if you change the following code ** // ** - - SwPosition aInsertPosition( rInsPos ); - { SwNodeIndex aIndexBefore(rInsPos.nNode); diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx index e248ae8d1190..92d77dde84d6 100644 --- a/sw/source/core/unocore/unoftn.cxx +++ b/sw/source/core/unocore/unoftn.cxx @@ -360,7 +360,6 @@ SwXFootnote::getAnchor() SwTextFootnote const*const pTextFootnote = rFormat.GetTextFootnote(); SwPaM aPam( pTextFootnote->GetTextNode(), pTextFootnote->GetStart() ); - SwPosition aMark( *aPam.Start() ); aPam.SetMark(); ++aPam.GetMark()->nContent; const uno::Reference< text::XTextRange > xRet = |