Made one-arg constructors explicit in shapes classes
This commit is contained in:
parent
a2fcb75876
commit
6381d10d40
@ -47,7 +47,7 @@ public :
|
||||
/// \param radius Radius of the circle
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CircleShape(float radius = 0);
|
||||
explicit CircleShape(float radius = 0);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the radius of the circle
|
||||
|
@ -45,8 +45,10 @@ public :
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Default constructor
|
||||
///
|
||||
/// \param pointsCount Number of points of the polygon
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
ConvexShape();
|
||||
explicit ConvexShape(unsigned int pointsCount = 0);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the number of points of the polygon
|
||||
|
@ -47,7 +47,7 @@ public :
|
||||
/// \param size Size of the rectangle
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
RectangleShape(const Vector2f& size = Vector2f(0, 0));
|
||||
explicit RectangleShape(const Vector2f& size = Vector2f(0, 0));
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the size of the rectangle
|
||||
|
@ -31,8 +31,9 @@
|
||||
namespace sf
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
ConvexShape::ConvexShape()
|
||||
ConvexShape::ConvexShape(unsigned int pointsCount)
|
||||
{
|
||||
SetPointsCount(pointsCount);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user