1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Use initializer list in Arrays

This commit is contained in:
kobewi
2024-03-22 22:53:26 +01:00
parent 594d64ec24
commit 75881f8322
72 changed files with 347 additions and 947 deletions

View File

@@ -299,8 +299,7 @@ String OpenXRAPI::get_error_string(XrResult result) const {
}
if (instance == XR_NULL_HANDLE) {
Array args;
args.push_back(Variant(result));
Array args = { Variant(result) };
return String("Error code {0}").format(args);
}