Add more const correctness

#2467
This commit is contained in:
Wojtek Figat
2024-04-22 22:53:27 +02:00
parent 515ee96a31
commit b92fbcb3bc
17 changed files with 28 additions and 28 deletions

View File

@@ -99,7 +99,7 @@ Rectangle Rectangle::FromPoints(const Float2& p1, const Float2& p2)
return Rectangle(upperLeft, Math::Max(rightBottom - upperLeft, Float2::Zero));
}
Rectangle Rectangle::FromPoints(Float2* points, int32 pointsCount)
Rectangle Rectangle::FromPoints(const Float2* points, int32 pointsCount)
{
ASSERT(pointsCount > 0);
Float2 upperLeft = points[0];