Skip to content
Snippets Groups Projects
Unverified Commit 6207b56c authored by trop[bot]'s avatar trop[bot] Committed by GitHub
Browse files

refactor: avoid repeating the return type from the declaration; use a braced...

refactor: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list]

NB: using the braced-initializer list uncovered an error here:
the float returned by std::floor() can't be implicitly cast to
an int. This is solved by using base::ClampFloor<int>() instead.
std::floor()

Co-authored-by: default avatarCharles Kerr <charles@charleskerr.com>
parent cafc3b88
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment