Made one-arg constructors explicit in shapes classes

This commit is contained in:
Laurent Gomila 2011-12-04 20:43:28 +01:00
parent a2fcb75876
commit 6381d10d40
4 changed files with 7 additions and 4 deletions

View file

@ -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