From 5c46daacd4e95ad0dc46bfbcabd1d7adfe01bbc0 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 15 Mar 2013 08:13:00 +0100 Subject: [PATCH] Fixed sf::Text constructor declaration (no longer explicit) and the API documentation --- include/SFML/Graphics/Text.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/SFML/Graphics/Text.hpp b/include/SFML/Graphics/Text.hpp index 9a17b8e0..3a0eaf7a 100644 --- a/include/SFML/Graphics/Text.hpp +++ b/include/SFML/Graphics/Text.hpp @@ -77,7 +77,7 @@ public : /// \param characterSize Base size of characters, in pixels /// //////////////////////////////////////////////////////////// - explicit Text(const String& string, const Font& font, unsigned int characterSize = 30); + Text(const String& string, const Font& font, unsigned int characterSize = 30); //////////////////////////////////////////////////////////// /// \brief Set the text's string @@ -337,8 +337,7 @@ private : /// font.loadFromFile("arial.ttf"); /// /// // Create a text -/// sf::Text text("hello"); -/// text.setFont(font); +/// sf::Text text("hello", font); /// text.setCharacterSize(30); /// text.setStyle(sf::Text::Bold); /// text.setColor(sf::Color::Red);