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

Fix fundamental type misuse in math arguments #89148

Closed
wants to merge 1 commit into from

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Mar 4, 2024

A handful of the core math classes were using their fundamental type arguments inappropriately, generally through unnecessary const and/or passing by reference. This PR sweeps through all those files, ensuring fundamental type arguments aren't const & get passed by value (unless deliberately functioning as an "out" reference). Besides that, the only other change made is to Vector3's snap and snapped functions to fix the opposite issue, where Vector3 wasn't passed by reference previously.

@Repiteo Repiteo requested a review from a team as a code owner March 4, 2024 17:13
@AThousandShips
Copy link
Member

AThousandShips commented Mar 4, 2024

Duplicate of:

As far as I can tell every case is covered by my older PR (Though I had missed Delaunay, updated that)

@Repiteo
Copy link
Contributor Author

Repiteo commented Mar 4, 2024

One of these days I'll remember to actually check other PRs

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.

3 participants