Changed constructors of sf::Window and sf::RenderWindow taking a single parameter to be explicit (to avoid implicit conversions like ^sf::Window w = 0^)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1402 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-02-11 13:10:12 +00:00
parent 79c7bf8e02
commit 239071c0fa
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ public :
/// \param settings Additional settings for the underlying OpenGL context
///
////////////////////////////////////////////////////////////
RenderWindow(WindowHandle handle, const ContextSettings& settings = ContextSettings());
explicit RenderWindow(WindowHandle handle, const ContextSettings& settings = ContextSettings());
////////////////////////////////////////////////////////////
/// \brief Destructor

View File

@ -103,7 +103,7 @@ public :
/// \param settings Additional settings for the underlying OpenGL context
///
////////////////////////////////////////////////////////////
Window(WindowHandle handle, const ContextSettings& settings = ContextSettings());
explicit Window(WindowHandle handle, const ContextSettings& settings = ContextSettings());
////////////////////////////////////////////////////////////
/// \brief Destructor