From 18df2f36e8bbab621f2cae9035c77fffac57d1e2 Mon Sep 17 00:00:00 2001 From: Twarit Waikar Date: Tue, 20 Dec 2022 15:36:14 +0530 Subject: [PATCH] VCS: Fix GDExtension return types for VCS after Array type hardening --- doc/classes/EditorVCSInterface.xml | 4 ++-- editor/editor_vcs_interface.cpp | 4 ++-- editor/editor_vcs_interface.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/classes/EditorVCSInterface.xml b/doc/classes/EditorVCSInterface.xml index b766978c04e6..85c10fefd9e3 100644 --- a/doc/classes/EditorVCSInterface.xml +++ b/doc/classes/EditorVCSInterface.xml @@ -53,7 +53,7 @@ - + Gets an instance of an [Array] of [String]s containing available branch names in the VCS. @@ -94,7 +94,7 @@ - + Returns an [Array] of [String]s, each containing the name of a remote configured in the VCS. diff --git a/editor/editor_vcs_interface.cpp b/editor/editor_vcs_interface.cpp index d22c7bd14997..3a6516fbfae5 100644 --- a/editor/editor_vcs_interface.cpp +++ b/editor/editor_vcs_interface.cpp @@ -57,7 +57,7 @@ void EditorVCSInterface::set_credentials(String p_username, String p_password, S } List EditorVCSInterface::get_remotes() { - TypedArray result; + TypedArray result; if (!GDVIRTUAL_CALL(_get_remotes, result)) { UNIMPLEMENTED(); return {}; @@ -137,7 +137,7 @@ List EditorVCSInterface::get_previous_commits(int p_ } List EditorVCSInterface::get_branch_list() { - TypedArray result; + TypedArray result; if (!GDVIRTUAL_CALL(_get_branch_list, result)) { UNIMPLEMENTED(); return {}; diff --git a/editor/editor_vcs_interface.h b/editor/editor_vcs_interface.h index 5d4901cefa18..c93fe4a67247 100644 --- a/editor/editor_vcs_interface.h +++ b/editor/editor_vcs_interface.h @@ -117,8 +117,8 @@ protected: GDVIRTUAL0R(bool, _shut_down); GDVIRTUAL0R(String, _get_vcs_name); GDVIRTUAL1R(TypedArray, _get_previous_commits, int); - GDVIRTUAL0R(TypedArray, _get_branch_list); - GDVIRTUAL0R(TypedArray, _get_remotes); + GDVIRTUAL0R(TypedArray, _get_branch_list); + GDVIRTUAL0R(TypedArray, _get_remotes); GDVIRTUAL1(_create_branch, String); GDVIRTUAL1(_remove_branch, String); GDVIRTUAL2(_create_remote, String, String);