From 5bd4dd41e158dbdaa33cba0d54921149798a9e8a Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 12 Feb 2014 17:37:01 +0000 Subject: [PATCH] Core: Xmlize now supports default values (#643) git-svn-id: svn://ultimatepp.org/upp/trunk@6912 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Xmlize.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uppsrc/Core/Xmlize.h b/uppsrc/Core/Xmlize.h index 45e92f410..b45f7fd83 100644 --- a/uppsrc/Core/Xmlize.h +++ b/uppsrc/Core/Xmlize.h @@ -30,10 +30,10 @@ public: void SetAttr(const char *id, const String& val) { node.SetAttr(id, val); } template XmlIO operator()(const char *tag, T& var); - template XmlIO operator()(const char *tag, const char *itemtag, T& var); + template XmlIO List(const char *tag, const char *itemtag, T& var); template XmlIO operator()(const char *tag, T& var, const T& def); - template XmlIO operator()(const char *tag, const char *itemtag, T& var, const T& def); + template XmlIO List(const char *tag, const char *itemtag, T& var, const T& def); template XmlIO Attr(const char *id, T& var) { if(IsLoading()) @@ -86,7 +86,7 @@ template XmlIO XmlIO::operator()(const char *tag, T& var) { return *this; } -template XmlIO XmlIO::operator()(const char *tag, const char *itemtag, T& var) { +template XmlIO XmlIO::List(const char *tag, const char *itemtag, T& var) { XmlIO n(*this, tag); Xmlize(n, itemtag, var); return *this; @@ -102,7 +102,7 @@ template XmlIO XmlIO::operator()(const char *tag, T& var, const T& def return *this; } -template XmlIO XmlIO::operator()(const char *tag, const char *itemtag, T& var, const T& def) +template XmlIO XmlIO::List(const char *tag, const char *itemtag, T& var, const T& def) { XmlIO n(*this, tag); if(IsLoading() && n.Node().GetCount() == 0 && n.Node().GetAttrCount() == 0)