summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-23 16:07:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-23 16:07:04 +0000
commit5a4766857ad3c9172847197a262e25c1926cbab2 (patch)
tree7ca7bfe6e927c3604d3a88dd560f5e4b4bd38641
parent4bc75ba3eb07bac4c079d5de8cac6de10d93c0f1 (diff)
coverity#1158448 Uninitialized scalar field
Change-Id: I189503d88d54b32b20d5f866687214cb4af35200
-rw-r--r--sw/source/core/doc/docedt.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 2816f8db427d..2a0a14a2cd7e 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -60,7 +60,9 @@ struct _SaveRedline
sal_Int32 nEndCnt;
_SaveRedline( SwRangeRedline* pR, const SwNodeIndex& rSttIdx )
- : pRedl( pR )
+ : pRedl(pR)
+ , nEnd(0)
+ , nEndCnt(0)
{
const SwPosition* pStt = pR->Start(),
* pEnd = pR->GetMark() == pStt ? pR->GetPoint() : pR->GetMark();
@@ -80,7 +82,9 @@ struct _SaveRedline
}
_SaveRedline( SwRangeRedline* pR, const SwPosition& rPos )
- : pRedl( pR )
+ : pRedl(pR)
+ , nEnd(0)
+ , nEndCnt(0)
{
const SwPosition* pStt = pR->Start(),
* pEnd = pR->GetMark() == pStt ? pR->GetPoint() : pR->GetMark();