Skip to content
  • Charles Kerr's avatar
    refactor: avoid repeating the return type from the declaration; use a braced... · f503a781
    Charles Kerr authored
    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()
    f503a781