Kaydet (Commit) a38165fd authored tarafından Noel Grandin's avatar Noel Grandin

coverity#708849 unused pointer value

Change-Id: I3d800ca26412537a69bbe0835f518558e37dead6
üst 4dda036b
...@@ -2275,7 +2275,6 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm, ...@@ -2275,7 +2275,6 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm,
const SwTxtFld* pFld ) const SwTxtFld* pFld )
{ {
// only fields in Footer, Header, FootNote, Flys // only fields in Footer, Header, FootNote, Flys
SwTxtNode* pTxtNode = (SwTxtNode*)&pFld->GetTxtNode();
SwRefPageGetFieldType* pGetType = (SwRefPageGetFieldType*)GetTyp(); SwRefPageGetFieldType* pGetType = (SwRefPageGetFieldType*)GetTyp();
SwDoc* pDoc = pGetType->GetDoc(); SwDoc* pDoc = pGetType->GetDoc();
if( pFld->GetTxtNode().StartOfSectionIndex() > if( pFld->GetTxtNode().StartOfSectionIndex() >
...@@ -2293,7 +2292,7 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm, ...@@ -2293,7 +2292,7 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm,
// create index for determination of the TextNode // create index for determination of the TextNode
SwPosition aPos( SwNodeIndex( pDoc->GetNodes() ) ); 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 // If no layout exists, ChangeExpansion is called for header and
// footer lines via layout formatting without existing TxtNode. // footer lines via layout formatting without existing TxtNode.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment