1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Skip copying values constructed immediately before returning

This commit is contained in:
Aaron Franke
2025-09-26 19:13:23 -07:00
parent 9283328fe7
commit 754d49ac81
14 changed files with 35 additions and 60 deletions

View File

@@ -575,8 +575,7 @@ struct SaveOptions {
*/
struct ColorProviderOptions {
Dictionary to_json() {
Dictionary dict;
return dict;
return Dictionary();
}
};
@@ -585,8 +584,7 @@ struct ColorProviderOptions {
*/
struct FoldingRangeProviderOptions {
Dictionary to_json() {
Dictionary dict;
return dict;
return Dictionary();
}
};