mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
Bazaar/PolyXMLTest : replaced Xmlize(XmlIO xml) with Xmlize(XmlIO &xml)
git-svn-id: svn://ultimatepp.org/upp/trunk@5004 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5ebf6f4d72
commit
e956bcffee
1 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ class Base : public WithPolyXML<Base>, public Pte<Base>
|
|||
{
|
||||
public:
|
||||
String BaseData;
|
||||
void Xmlize(XmlIO xml) { xml("BaseData", BaseData); }
|
||||
void Xmlize(XmlIO &xml) { xml("BaseData", BaseData); }
|
||||
Base() { BaseData = "Sample data in Base class"; }
|
||||
};
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ class Derived : public Base
|
|||
{
|
||||
public:
|
||||
String DerivedData;
|
||||
void Xmlize(XmlIO xml) { Base::Xmlize(xml); xml("DerivedData", DerivedData); }
|
||||
void Xmlize(XmlIO &xml) { Base::Xmlize(xml); xml("DerivedData", DerivedData); }
|
||||
Derived() { DerivedData = "Sample data in Derived class"; }
|
||||
};
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class Another : public Derived
|
|||
{
|
||||
public:
|
||||
int AnotherData;
|
||||
void Xmlize(XmlIO xml) { Derived::Xmlize(xml); xml("AnotherData", AnotherData); }
|
||||
void Xmlize(XmlIO &xml) { Derived::Xmlize(xml); xml("AnotherData", AnotherData); }
|
||||
Another() { AnotherData = 7; }
|
||||
};
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ class OneMore : public Another
|
|||
{
|
||||
public:
|
||||
double OneMoreData;
|
||||
void Xmlize(XmlIO xml) { Derived::Xmlize(xml); xml("AnotherData", AnotherData); }
|
||||
void Xmlize(XmlIO &xml) { Derived::Xmlize(xml); xml("AnotherData", AnotherData); }
|
||||
OneMore() { OneMoreData = 3.14; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue