You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Codestyle: Don't use auto where not warranted
We allow using auto for lambdas or complex macros where a return type may change based on the parameters. But where the type is clear, we should be explicit. Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
@@ -71,7 +71,7 @@ Viewport *OpenXRFbPassthroughExtensionWrapper::get_main_viewport() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto *scene_tree = Object::cast_to<SceneTree>(main_loop);
|
||||
SceneTree *scene_tree = Object::cast_to<SceneTree>(main_loop);
|
||||
if (!scene_tree) {
|
||||
print_error("Unable to retrieve scene tree");
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user