diff options
author | est31 <MTest31@outlook.com> | 2015-05-01 02:53:41 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-05-01 03:41:45 +0200 |
commit | b2b514367824263e2dc1e26b010b0df63fd3700a (patch) | |
tree | 8d9ef509c495ceaa25c8a5b34b844fd9c9ed216c /core/object.h | |
parent | 5c6b31c024b60ae9c43dc48c04128de99d147f5a (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.h | 3 |
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; + } }; |