summaryrefslogtreecommitdiff
path: root/core/object.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-05-01 02:53:41 +0200
committerest31 <MTest31@outlook.com>2015-05-01 03:41:45 +0200
commitb2b514367824263e2dc1e26b010b0df63fd3700a (patch)
tree8d9ef509c495ceaa25c8a5b34b844fd9c9ed216c /core/object.h
parent5c6b31c024b60ae9c43dc48c04128de99d147f5a (diff)
Sort xml files, so order is constant
Makes xml format work better with version control systems.
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h
index e828a24767..44464ab199 100644
--- a/core/object.h
+++ b/core/object.h
@@ -111,6 +111,9 @@ struct PropertyInfo {
PropertyInfo( Variant::Type p_type, const String p_name, PropertyHint p_hint=PROPERTY_HINT_NONE, const String& p_hint_string="",uint32_t p_usage=PROPERTY_USAGE_DEFAULT) {
type=p_type; name=p_name; hint=p_hint; hint_string=p_hint_string; usage=p_usage;
}
+ bool operator<(const PropertyInfo& p_info) const {
+ return name<p_info.name;
+ }
};