From 0548b226efa0f1a2bb5af3215a500040c8267338 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 4 Dec 2011 11:25:20 +0100 Subject: [PATCH] sf::Shape now outputs less warnings about the number of points --- src/SFML/Graphics/ConvexShape.cpp | 4 +--- src/SFML/Graphics/Shape.cpp | 1 - src/SFML/Graphics/StarShape.cpp | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SFML/Graphics/ConvexShape.cpp b/src/SFML/Graphics/ConvexShape.cpp index 93fa5c0c..9367d4b1 100644 --- a/src/SFML/Graphics/ConvexShape.cpp +++ b/src/SFML/Graphics/ConvexShape.cpp @@ -31,10 +31,8 @@ namespace sf { //////////////////////////////////////////////////////////// -ConvexShape::ConvexShape() : -myPoints() +ConvexShape::ConvexShape() { - Update(); } diff --git a/src/SFML/Graphics/Shape.cpp b/src/SFML/Graphics/Shape.cpp index 9e17e439..14688c85 100644 --- a/src/SFML/Graphics/Shape.cpp +++ b/src/SFML/Graphics/Shape.cpp @@ -172,7 +172,6 @@ void Shape::Update() unsigned int count = GetOutlinePointsCount(); if (count < 3) { - sf::Err() << "Invalid shape: it has less than 3 points" << std::endl; myVertices.Resize(0); myOutlineVertices.Resize(0); return; diff --git a/src/SFML/Graphics/StarShape.cpp b/src/SFML/Graphics/StarShape.cpp index 9cf5c625..138b0944 100644 --- a/src/SFML/Graphics/StarShape.cpp +++ b/src/SFML/Graphics/StarShape.cpp @@ -37,7 +37,6 @@ myInnerRadius(0), myOuterRadius(0), myPointsCount(0) { - Update(); }