mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
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:
parent
3ad453a5d9
commit
d9a5dd8d45
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue