summaryrefslogtreecommitdiff
path: root/src/section.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/section.h')
-rw-r--r--src/section.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/section.h b/src/section.h
index 486656d..a1f859e 100644
--- a/src/section.h
+++ b/src/section.h
@@ -3,7 +3,7 @@
*
*
*
- * Copyright (C) 1997-2013 by Dimitri van Heesch.
+ * Copyright (C) 1997-2014 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -33,25 +33,32 @@ struct SectionInfo
Paragraph = 4,
Anchor = 5
};
- SectionInfo(const char *f,const char *l,const char *t,
+ SectionInfo(const char *f,const int lin,const char *l,const char *t,
SectionType st,int lev,const char *r=0) :
- label(l), title(t), type(st), ref(r), definition(0),
- fileName(f), generated(FALSE), level(lev)
- {
+ label(l), title(t), type(st), ref(r), definition(0),
+ fileName(f), lineNr(lin), generated(FALSE), level(lev)
+ {
}
SectionInfo(const SectionInfo &s)
{
- label=s.label.copy(); title=s.title.copy(); ref=s.ref.copy();
- type =s.type; definition=s.definition;
- fileName=s.fileName.copy(); generated=s.generated;
+ label=s.label.copy();
+ title=s.title.copy();
+ type =s.type;
+ ref=s.ref.copy();
+ definition=s.definition;
+ fileName=s.fileName.copy();
+ lineNr=s.lineNr;
+ generated=s.generated;
+ level=s.level;
}
~SectionInfo() {}
- QCString label;
+ QCString label;
QCString title;
SectionType type;
QCString ref;
Definition *definition;
QCString fileName;
+ int lineNr;
bool generated;
int level;
};