Made the constructors of sf::Sound and sf::Music explicit

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1445 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-03-09 07:56:07 +00:00
parent d8a31243e4
commit 221ef8f5b3
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ public :
/// (ie. size taken by the music in memory) (44100 by default)
///
////////////////////////////////////////////////////////////
Music(std::size_t BufferSize = 44100);
explicit Music(std::size_t BufferSize = 44100);
////////////////////////////////////////////////////////////
/// Destructor

View file

@ -72,7 +72,7 @@ public :
/// \param Position : Position (0, 0, 0 by default)
///
////////////////////////////////////////////////////////////
Sound(const SoundBuffer& Buffer, bool Loop = false, float Pitch = 1.f, float Volume = 100.f, const Vector3f& Position = Vector3f(0, 0, 0));
explicit Sound(const SoundBuffer& Buffer, bool Loop = false, float Pitch = 1.f, float Volume = 100.f, const Vector3f& Position = Vector3f(0, 0, 0));
////////////////////////////////////////////////////////////
/// Copy constructor