mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
79c7bf8e02
commit
239071c0fa
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user