aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde2017-08-27 14:16:32 +0200
committerRémi Verschelde2017-08-27 14:16:32 +0200
commitc90bfcb1c6bd0640cb6a7effc0fadc03462e937e (patch)
treea4fb1c3f273fbdcd7056495af94ad4b1c1d46901 /core
parent21e53c42672e46c74bce6246fde16f4200c48163 (diff)
downloadgodot-c90bfcb1c6bd0640cb6a7effc0fadc03462e937e.tar.gz
godot-c90bfcb1c6bd0640cb6a7effc0fadc03462e937e.tar.zst
godot-c90bfcb1c6bd0640cb6a7effc0fadc03462e937e.zip
Re-apply clang-format to all files
Some badly formatted code has managed to pass through our CI...
Diffstat (limited to 'core')
-rw-r--r--core/class_db.cpp7
-rw-r--r--core/class_db.h3
2 files changed, 5 insertions, 5 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index cd55219b5..4d92c5b6d 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -600,9 +600,9 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
#ifdef DEBUG_METHODS_ENABLED
String enum_name = p_enum;
- if (enum_name!=String()) {
- if (enum_name.find(".")!=-1) {
- enum_name=enum_name.get_slicec('.',1);
+ if (enum_name != String()) {
+ if (enum_name.find(".") != -1) {
+ enum_name = enum_name.get_slicec('.', 1);
}
List<StringName> *constants_list = type->enum_map.getptr(enum_name);
@@ -614,7 +614,6 @@ void ClassDB::bind_integer_constant(const StringName &p_class, const StringName
new_list.push_back(p_name);
type->enum_map[enum_name] = new_list;
}
-
}
type->constant_order.push_back(p_name);
diff --git a/core/class_db.h b/core/class_db.h
index 0943cd36c..f28710361 100644
--- a/core/class_db.h
+++ b/core/class_db.h
@@ -457,7 +457,8 @@ public:
}
type->method_map[p_name] = bind;
#ifdef DEBUG_METHODS_ENABLED
-// bind->set_return_type("Variant");
+ // FIXME: <reduz> set_return_type is no longer in MethodBind, so I guess it should be moved to vararg method bind
+ //bind->set_return_type("Variant");
type->method_order.push_back(p_name);
#endif