summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-31 20:21:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-01 10:38:21 +0100
commit73fb311ead7882ab99945dbb74d1f2fd027ed9c4 (patch)
tree3a8eb42f09ecbaa8c90a3d6e6299ca12dc13968a
parent6e4414b73777c9d61fa9dfcf9f614f6aecf81bcf (diff)
coverity#708439 Uninitialized pointer field
Change-Id: I63f1878c91dedc176f69ca593e19f8ff53ea1e6b
-rw-r--r--sw/source/core/text/inftxt.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index e84bfbdcb258..550a50cf66e9 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -1741,9 +1741,11 @@ SwTxtSlot::~SwTxtSlot()
}
}
-SwFontSave::SwFontSave( const SwTxtSizeInfo &rInf, SwFont *pNew,
- SwAttrIter* pItr )
- : pFnt( pNew ? ((SwTxtSizeInfo&)rInf).GetFont() : 0 )
+SwFontSave::SwFontSave(const SwTxtSizeInfo &rInf, SwFont *pNew,
+ SwAttrIter* pItr)
+ : pInf(NULL)
+ , pFnt(pNew ? ((SwTxtSizeInfo&)rInf).GetFont() : NULL)
+ , pIter(NULL)
{
if( pFnt )
{
@@ -1772,8 +1774,6 @@ SwFontSave::SwFontSave( const SwTxtSizeInfo &rInf, SwFont *pNew,
pIter = pItr;
pIter->SetFnt( pNew );
}
- else
- pIter = NULL;
}
}