mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
parent
64a63e0861
commit
b5e1e05ef2
1439 changed files with 1 additions and 34187 deletions
|
@ -54,7 +54,6 @@ void PluginScript::_bind_methods() {
|
|||
}
|
||||
|
||||
PluginScriptInstance *PluginScript::_create_instance(const Variant **p_args, int p_argcount, Object *p_owner, Variant::CallError &r_error) {
|
||||
|
||||
r_error.error = Variant::CallError::CALL_OK;
|
||||
|
||||
// Create instance
|
||||
|
@ -82,7 +81,6 @@ PluginScriptInstance *PluginScript::_create_instance(const Variant **p_args, int
|
|||
}
|
||||
|
||||
Variant PluginScript::_new(const Variant **p_args, int p_argcount, Variant::CallError &r_error) {
|
||||
|
||||
r_error.error = Variant::CallError::CALL_OK;
|
||||
|
||||
if (!_valid) {
|
||||
|
@ -158,7 +156,6 @@ void PluginScript::update_exports() {
|
|||
#ifdef TOOLS_ENABLED
|
||||
ASSERT_SCRIPT_VALID();
|
||||
if (placeholders.size()) {
|
||||
|
||||
//update placeholders if any
|
||||
Map<StringName, Variant> propdefvalues;
|
||||
List<PropertyInfo> propinfos;
|
||||
|
@ -272,7 +269,6 @@ Error PluginScript::reload(bool p_keep_state) {
|
|||
// ClassDB name (i.e. `Node2D`) or a resource path (i.e. `res://foo/bar.gd`)
|
||||
StringName *base_name = (StringName *)&manifest.base;
|
||||
if (*base_name) {
|
||||
|
||||
if (ClassDB::class_exists(*base_name)) {
|
||||
_native_parent = *base_name;
|
||||
} else {
|
||||
|
@ -406,7 +402,6 @@ ScriptLanguage *PluginScript::get_language() const {
|
|||
}
|
||||
|
||||
Error PluginScript::load_source_code(const String &p_path) {
|
||||
|
||||
PoolVector<uint8_t> sourcef;
|
||||
Error err;
|
||||
FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue