summaryrefslogtreecommitdiff
path: root/server/src/macrolist.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/macrolist.cc')
-rw-r--r--server/src/macrolist.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/macrolist.cc b/server/src/macrolist.cc
index 8207b06..1117ed9 100644
--- a/server/src/macrolist.cc
+++ b/server/src/macrolist.cc
@@ -65,7 +65,7 @@ MacroList::MacroList(std::string macropath)
MacroHeaderParser parser(macropath + "/" + *i);
parser.parse();
Macro *macro = parser.getMacro();
- (*this)[macro->attributes["name"]][Version(macro->attributes["version"])] = *i;
+ (*this)[macro->attributes["name"]][VersionStr(macro->attributes["version"])] = *i;
i++;
}
}
@@ -88,12 +88,12 @@ int main()
{
MacroList lst("/home");
- lst["macro1"][Version("1.0")] = "macro1-1.0.xml";
- lst["macro1"][Version("1.1")] = "macro1-1.1.xml";
- lst["macro1"][Version("1.1.1")] = "macro1-1.1.1.xml";
- lst["macro1"][Version("1.2")] = "macro1-1.2.xml";
- lst["macro2"][Version("1.0")] = "macro2.xml";
- lst["macro3"][Version("1.0")] = "macro3.xml";
+ lst["macro1"][VersionStr("1.0")] = "macro1-1.0.xml";
+ lst["macro1"][VersionStr("1.1")] = "macro1-1.1.xml";
+ lst["macro1"][VersionStr("1.1.1")] = "macro1-1.1.1.xml";
+ lst["macro1"][VersionStr("1.2")] = "macro1-1.2.xml";
+ lst["macro2"][VersionStr("1.0")] = "macro2.xml";
+ lst["macro3"][VersionStr("1.0")] = "macro3.xml";
MacroList::iterator i = lst.begin();
while(i != lst.end()) {