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

Update FastNoiseLite.h #95

Merged
merged 1 commit into from
Aug 27, 2022
Merged

Conversation

MGRussell
Copy link
Contributor

A simple change that just added constness to all the non-mutating functions. Handy because it helps somewhat clarify the API, allows references to be passed around that can generate noise, but not mutate state, and also some hand-wavy thing about compilers liking constness when possible.

Update C++ functions to be const.
@Auburn
Copy link
Owner

Auburn commented Aug 27, 2022

Thanks, didn't realise this wasn't the case already, not sure how it was overlooked!

@Auburn Auburn merged commit eb070e7 into Auburn:master Aug 27, 2022
@MGRussell MGRussell deleted the MGRussell-ConstPatch-1 branch August 28, 2022 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants