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

refactor: make use of synfig::clamp instead of std::max(std::min()) #2714

Merged
merged 1 commit into from Jun 27, 2022

Conversation

rodolforg
Copy link
Contributor

It's more readable this way.
In C++17, we can replace it with std::clamp().

It's more readable this way.
In C++17, we can replace it with `std::clamp()`.
@ice0 ice0 merged commit 4dbf2cd into synfig:master Jun 27, 2022
@ice0
Copy link
Collaborator

ice0 commented Jun 27, 2022

Merged. Thank you!

@rodolforg rodolforg deleted the use-clamp branch June 27, 2022 10:25
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.

None yet

2 participants