summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-04 15:22:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-04 16:24:36 +0100
commit8aba3a25ddccf7c021950ab54ab9d47dd8dd7643 (patch)
tree80320228ec9b401cd6a7b30761db04c372e08e3a /svtools
parentdcee310c8f31ab2acbd3544a3e5d7b754a456456 (diff)
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
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistentry.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/svtools/source/contnr/treelistentry.cxx b/svtools/source/contnr/treelistentry.cxx
index 60a960fb5f13..378a64689f4f 100644
--- a/svtools/source/contnr/treelistentry.cxx
+++ b/svtools/source/contnr/treelistentry.cxx
@@ -57,10 +57,13 @@ SvTreeListEntry::SvTreeListEntry()
{
}
-SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r) :
- pParent(NULL),
- nAbsPos(r.nAbsPos),
- nListPos(r.nListPos & 0x7FFFFFFF)
+SvTreeListEntry::SvTreeListEntry(const SvTreeListEntry& r)
+ : pParent(NULL)
+ , nAbsPos(r.nAbsPos)
+ , nListPos(r.nListPos & 0x7FFFFFFF)
+ , bIsMarked(r.bIsMarked)
+ , pUserData(r.pUserData)
+ , nEntryFlags(r.nEntryFlags)
{
SvTreeListEntries::const_iterator it = r.maChildren.begin(), itEnd = r.maChildren.end();
for (; it != itEnd; ++it)