summaryrefslogtreecommitdiff
path: root/server/src/macrotool_dump.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/macrotool_dump.cc')
-rw-r--r--server/src/macrotool_dump.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/server/src/macrotool_dump.cc b/server/src/macrotool_dump.cc
index 3f9cfd7..71bc690 100644
--- a/server/src/macrotool_dump.cc
+++ b/server/src/macrotool_dump.cc
@@ -89,14 +89,14 @@ static std::map<std::string, struct _macro> macroList()
std::vector<std::string> templatefiles = getTemplates();
std::vector<std::string>::iterator tfs = templatefiles.begin();
while(tfs != templatefiles.end()) {
- std::string course = tfs->substr(0, tfs->length() - 4);
- TemplateParser parser(course);
+ std::string templ = tfs->substr(0, tfs->length() - 4);
+ TemplateParser parser(templ);
parser.parse();
Template *t = parser.getTemplate();
- std::vector<Macro>::iterator ms = t->course.macros.begin();
- while(ms != t->course.macros.end()) {
+ std::vector<Macro>::iterator ms = t->macros.begin();
+ while(ms != t->macros.end()) {
if(ms->attributes.find("header") == ms->attributes.end())
- macros[ms->attributes["name"]].templates.insert(course);
+ macros[ms->attributes["name"]].templates.insert(templ);
ms++;
}
tfs++;
@@ -154,20 +154,20 @@ static std::map<std::string, struct _template> templateList()
std::vector<std::string> templatefiles = getTemplates();
std::vector<std::string>::iterator tfs = templatefiles.begin();
while(tfs != templatefiles.end()) {
- std::string course = tfs->substr(0, tfs->length() - 4);
- TemplateParser parser(course);
+ std::string templ = tfs->substr(0, tfs->length() - 4);
+ TemplateParser parser(templ);
parser.parse();
Template *t = parser.getTemplate();
- std::string key = t->course.attributes["name"];
+ std::string key = t->attributes["name"];
templates[key].file = *tfs;
- templates[key].name = t->course.attributes["name"];
- templates[key].title = t->course.attributes["title"];
- templates[key].version = t->course.attributes["version"];
+ templates[key].name = t->attributes["name"];
+ templates[key].title = t->attributes["title"];
+ templates[key].version = t->attributes["version"];
- std::vector<Macro>::iterator ms = t->course.macros.begin();
- while(ms != t->course.macros.end()) {
+ std::vector<Macro>::iterator ms = t->macros.begin();
+ while(ms != t->macros.end()) {
if(ms->attributes.find("header") == ms->attributes.end())
templates[key].macros.push_back(ms->attributes["name"]);
ms++;