diff options
author | deva <deva> | 2009-07-24 07:45:17 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-24 07:45:17 +0000 |
commit | 61f5f4fbdf3f7b05715badad035f391718d282aa (patch) | |
tree | 6127a0d8d4257261c31997ee343a1ec37f3c82a6 /server/src/macrolist.cc | |
parent | 7e349e2789a633a6014baea63aeb7932e024c917 (diff) |
Fixed compiler issues...
Diffstat (limited to 'server/src/macrolist.cc')
-rw-r--r-- | server/src/macrolist.cc | 14 |
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()) { |