Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Integrate Ref instantiate where possible #92986

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Jun 10, 2024

Followup to #88183, which expanded Ref<T>::instantiate() to accept constructor arguments. This PR is focused on converting existing Ref constructors to the shorthand syntax where applicable. Does not convert every instance, as some constructors happen on the same line a Ref is declared; converting these would require a static method, and is more suitable as a separate PR.

@Repiteo Repiteo added this to the 4.x milestone Jun 10, 2024
@Repiteo Repiteo requested review from a team as code owners June 10, 2024 16:01
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and improves readability quite substantially

editor/plugins/light_occluder_2d_editor_plugin.cpp Outdated Show resolved Hide resolved
editor/plugins/navigation_polygon_editor_plugin.cpp Outdated Show resolved Hide resolved
modules/gridmap/grid_map.cpp Outdated Show resolved Hide resolved
modules/gridmap/grid_map.cpp Outdated Show resolved Hide resolved
scene/3d/navigation_agent_3d.cpp Outdated Show resolved Hide resolved
scene/3d/navigation_link_3d.cpp Outdated Show resolved Hide resolved
scene/3d/navigation_obstacle_3d.cpp Outdated Show resolved Hide resolved
scene/3d/navigation_obstacle_3d.cpp Outdated Show resolved Hide resolved
scene/3d/path_3d.cpp Outdated Show resolved Hide resolved
@Repiteo Repiteo force-pushed the core/ref-instantiate-integration branch from 1954300 to e2fd2ce Compare June 10, 2024 16:15
@Repiteo Repiteo force-pushed the core/ref-instantiate-integration branch from e2fd2ce to a3e7aa0 Compare June 16, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants