summaryrefslogtreecommitdiffstats
path: root/src/entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entry.cpp')
-rw-r--r--src/entry.cpp107
1 files changed, 55 insertions, 52 deletions
diff --git a/src/entry.cpp b/src/entry.cpp
index 79cb9c8..1ab762a 100644
--- a/src/entry.cpp
+++ b/src/entry.cpp
@@ -80,62 +80,80 @@ Entry::Entry(const Entry &e)
//printf("Entry::Entry(%p):copy\n",this);
num++;
section = e.section;
+ type = e.type;
+ name = e.name;
+ tagInfo = e.tagInfo;
protection = e.protection;
mtype = e.mtype;
+ spec = e.spec;
+ initLines = e.initLines;
stat = e.stat;
explicitExternal = e.explicitExternal;
+ proto = e.proto;
+ subGrouping = e.subGrouping;
+ callGraph = e.callGraph;
+ callerGraph = e.callerGraph;
virt = e.virt;
- m_parent = e.m_parent;
- type = e.type.copy();
- name = e.name.copy();
args = e.args;
- bitfields = e.bitfields.copy();
- exception = e.exception.copy();
+ bitfields = e.bitfields;
+ argList = new ArgumentList;
+ argList->setAutoDelete(TRUE);
+ tArgLists = 0;
program = e.program;
- includeFile = e.includeFile.copy();
- includeName = e.includeFile.copy();
- doc = e.doc.copy();
+ initializer = e.initializer;
+ includeFile = e.includeFile;
+ includeName = e.includeName;
+ doc = e.doc;
docLine = e.docLine;
- docFile = e.docFile.copy();
- relates = e.relates.copy();
- relatesType = e.relatesType;
- read = e.read.copy();
- write = e.write.copy();
- brief = e.brief.copy();
+ docFile = e.docFile;
+ brief = e.brief;
briefLine = e.briefLine;
- briefFile = e.briefFile.copy();
- inbodyDocs = e.inbodyDocs.copy();
+ briefFile = e.briefFile;
+ inbodyDocs = e.inbodyDocs;
inbodyLine = e.inbodyLine;
- inbodyFile = e.inbodyFile.copy();
- inside = e.inside.copy();
- fileName = e.fileName.copy();
- startLine = e.startLine;
- mGrpId = e.mGrpId;
+ inbodyFile = e.inbodyFile;
+ relates = e.relates;
+ relatesType = e.relatesType;
+ read = e.read;
+ write = e.write;
+ inside = e.inside;
+ exception = e.exception;
+ typeConstr = new ArgumentList;
+ typeConstr->setAutoDelete(TRUE);
bodyLine = e.bodyLine;
endBodyLine = e.endBodyLine;
- spec = e.spec;
- initializer = e.initializer;
- initLines = e.initLines;
- callGraph = e.callGraph;
- callerGraph = e.callerGraph;
- objc = e.objc;
- tagInfo = e.tagInfo;
- hidden = e.hidden;
- artificial = e.artificial;
- m_sublist = new QList<Entry>;
- m_sublist->setAutoDelete(TRUE);
+ mGrpId = e.mGrpId;
extends = new QList<BaseInfo>;
extends->setAutoDelete(TRUE);
groups = new QList<Grouping>;
groups->setAutoDelete(TRUE);
anchors = new QList<SectionInfo>;
- argList = new ArgumentList;
- argList->setAutoDelete(TRUE);
- typeConstr = new ArgumentList;
- typeConstr->setAutoDelete(TRUE);
- tArgLists = 0;
+ fileName = e.fileName;
+ startLine = e.startLine;
+ if (e.sli)
+ {
+ sli = new QList<ListItemInfo>;
+ sli->setAutoDelete(TRUE);
+ QListIterator<ListItemInfo> slii(*e.sli);
+ ListItemInfo *ili;
+ for (slii.toFirst();(ili=slii.current());++slii)
+ {
+ sli->append(new ListItemInfo(*ili));
+ }
+ }
+ else
+ {
+ sli=0;
+ }
+ objc = e.objc;
+ hidden = e.hidden;
+ artificial = e.artificial;
groupDocType = e.groupDocType;
+ m_parent = e.m_parent;
+ m_sublist = new QList<Entry>;
+ m_sublist->setAutoDelete(TRUE);
+
// deep copy of the child entry list
QListIterator<Entry> eli(*e.m_sublist);
Entry *cur;
@@ -194,21 +212,6 @@ Entry::Entry(const Entry &e)
tArgLists = copyArgumentLists(e.tArgLists);
}
- if (e.sli)
- {
- sli = new QList<ListItemInfo>;
- sli->setAutoDelete(TRUE);
- QListIterator<ListItemInfo> slii(*e.sli);
- ListItemInfo *ili;
- for (slii.toFirst();(ili=slii.current());++slii)
- {
- sli->append(new ListItemInfo(*ili));
- }
- }
- else
- {
- sli=0;
- }
}
Entry::~Entry()