reference/XmlizeCustomValue/XmlizeCustomValue.cpp fixes in example

git-svn-id: svn://ultimatepp.org/upp/trunk@2817 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
kohait 2010-10-25 13:11:55 +00:00
parent 3ad453a5d9
commit d9a5dd8d45

View file

@ -5,9 +5,9 @@ using namespace Upp;
struct MyCustomValue : AssignValueTypeNo<MyCustomValue, 514> {
int x, y, z;
int operator==(const MyCustomValue& o) const { return false; }
bool operator==(const MyCustomValue& o) const { return false; }
void Serialize(Stream& s) {}
String ToString() const { return ""; }
String ToString() const { return "MyCustomValue"; }
unsigned GetHashValue() const { return 0; }
bool IsNullInstance() const { return false; }
@ -27,7 +27,7 @@ void Xmlize(XmlIO xml, MyCustomValue& v)
}
INITBLOCK {
RichValue<Color>::Register();
RichValue<MyCustomValue>::Register();
}
REGISTER_VALUE_XMLIZE(MyCustomValue);