Cleanup: replace static_casts with functional casts for numeric types

This commit is contained in:
Campbell Barton
2022-09-25 18:30:50 +10:00
parent 891949cbb4
commit c7b247a118
62 changed files with 148 additions and 167 deletions

View File

@@ -36,12 +36,12 @@ OpenVDBMeshAdapter::OpenVDBMeshAdapter(const Mesh &mesh, float4x4 transform)
size_t OpenVDBMeshAdapter::polygonCount() const
{
return static_cast<size_t>(looptris_.size());
return size_t(looptris_.size());
}
size_t OpenVDBMeshAdapter::pointCount() const
{
return static_cast<size_t>(verts_.size());
return size_t(verts_.size());
}
size_t OpenVDBMeshAdapter::vertexCount(size_t UNUSED(polygon_index)) const