Kaydet (Commit) 8aba3a25 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#984147 Uninitialized pointer field

the original SvLBoxEntry::Clone did...

pUserData = ((SvLBoxEntry*)pSource)->GetUserData();
nEntryFlags = ((SvLBoxEntry*)pSource)->nEntryFlags;

so presumably this is what we want to do here

Change-Id: Icaafb1f5c62847167886a230391efa5f7a3fca99
üst dcee310c
...@@ -57,10 +57,13 @@ SvTreeListEntry::SvTreeListEntry() ...@@ -57,10 +57,13 @@ SvTreeListEntry::SvTreeListEntry()
{ {
} }
SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r) : SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r)
pParent(NULL), : pParent(NULL)
nAbsPos(r.nAbsPos), , nAbsPos(r.nAbsPos)
nListPos(r.nListPos & 0x7FFFFFFF) , nListPos(r.nListPos & 0x7FFFFFFF)
, bIsMarked(r.bIsMarked)
, pUserData(r.pUserData)
, nEntryFlags(r.nEntryFlags)
{ {
SvTreeListEntries::const_iterator it = r.maChildren.begin(), itEnd = r.maChildren.end(); SvTreeListEntries::const_iterator it = r.maChildren.begin(), itEnd = r.maChildren.end();
for (; it != itEnd; ++it) for (; it != itEnd; ++it)
......
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