diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-07 14:40:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-07 15:33:27 +0200 |
commit | a38165fdd4a6ea5695ed16a8bb529e0228cdd695 (patch) | |
tree | bc261a0fdd71944dde29448ec579f92135c7058d /sw/source | |
parent | 4dda036b15bfb528b576c6f6d97cc57903d93451 (diff) |
coverity#708849 unused pointer value
Change-Id: I3d800ca26412537a69bbe0835f518558e37dead6
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index c2f66d9136d4..d61ecf14f4a8 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -2275,7 +2275,6 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm, const SwTxtFld* pFld ) { // only fields in Footer, Header, FootNote, Flys - SwTxtNode* pTxtNode = (SwTxtNode*)&pFld->GetTxtNode(); SwRefPageGetFieldType* pGetType = (SwRefPageGetFieldType*)GetTyp(); SwDoc* pDoc = pGetType->GetDoc(); if( pFld->GetTxtNode().StartOfSectionIndex() > @@ -2293,7 +2292,7 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm, // create index for determination of the TextNode SwPosition aPos( SwNodeIndex( pDoc->GetNodes() ) ); - pTxtNode = (SwTxtNode*) GetBodyTxtNode( *pDoc, aPos, *pFrm ); + SwTxtNode* pTxtNode = (SwTxtNode*) GetBodyTxtNode( *pDoc, aPos, *pFrm ); // If no layout exists, ChangeExpansion is called for header and // footer lines via layout formatting without existing TxtNode. |