Style: Apply new clang-format 5.0 style to all files
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/*************************************************************************/
|
||||
/*************************************************************************/
|
||||
/* object.h */
|
||||
/*************************************************************************/
|
||||
/* This file is part of: */
|
||||
@ -144,18 +144,18 @@ struct PropertyInfo {
|
||||
|
||||
static PropertyInfo from_dict(const Dictionary &p_dict);
|
||||
|
||||
PropertyInfo()
|
||||
: type(Variant::NIL),
|
||||
hint(PROPERTY_HINT_NONE),
|
||||
usage(PROPERTY_USAGE_DEFAULT) {
|
||||
PropertyInfo() :
|
||||
type(Variant::NIL),
|
||||
hint(PROPERTY_HINT_NONE),
|
||||
usage(PROPERTY_USAGE_DEFAULT) {
|
||||
}
|
||||
|
||||
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, const StringName &p_class_name = StringName())
|
||||
: type(p_type),
|
||||
name(p_name),
|
||||
hint(p_hint),
|
||||
hint_string(p_hint_string),
|
||||
usage(p_usage) {
|
||||
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, const StringName &p_class_name = StringName()) :
|
||||
type(p_type),
|
||||
name(p_name),
|
||||
hint(p_hint),
|
||||
hint_string(p_hint_string),
|
||||
usage(p_usage) {
|
||||
|
||||
if (hint == PROPERTY_HINT_RESOURCE_TYPE) {
|
||||
class_name = hint_string;
|
||||
@ -164,11 +164,11 @@ struct PropertyInfo {
|
||||
}
|
||||
}
|
||||
|
||||
PropertyInfo(const StringName &p_class_name)
|
||||
: type(Variant::OBJECT),
|
||||
class_name(p_class_name),
|
||||
hint(PROPERTY_HINT_NONE),
|
||||
usage(PROPERTY_USAGE_DEFAULT) {
|
||||
PropertyInfo(const StringName &p_class_name) :
|
||||
type(Variant::OBJECT),
|
||||
class_name(p_class_name),
|
||||
hint(PROPERTY_HINT_NONE),
|
||||
usage(PROPERTY_USAGE_DEFAULT) {
|
||||
}
|
||||
|
||||
bool operator<(const PropertyInfo &p_info) const {
|
||||
@ -428,9 +428,9 @@ private:
|
||||
|
||||
_FORCE_INLINE_ bool operator<(const Target &p_target) const { return (_id == p_target._id) ? (method < p_target.method) : (_id < p_target._id); }
|
||||
|
||||
Target(const ObjectID &p_id, const StringName &p_method)
|
||||
: _id(p_id),
|
||||
method(p_method) {
|
||||
Target(const ObjectID &p_id, const StringName &p_method) :
|
||||
_id(p_id),
|
||||
method(p_method) {
|
||||
}
|
||||
Target() { _id = 0; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user