Made some 1 argument constructors explicit

This commit is contained in:
Laurent Gomila 2012-03-27 17:13:46 +02:00
parent ac45dc9cba
commit 74f9388f31
4 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ public :
/// \param buffer Sound buffer containing the audio data to play with the sound
///
////////////////////////////////////////////////////////////
Sound(const SoundBuffer& buffer);
explicit Sound(const SoundBuffer& buffer);
////////////////////////////////////////////////////////////
/// \brief Copy constructor

View File

@ -61,7 +61,7 @@ public :
/// \param vertexCount Initial number of vertices in the array
///
////////////////////////////////////////////////////////////
VertexArray(PrimitiveType type, unsigned int vertexCount = 0);
explicit VertexArray(PrimitiveType type, unsigned int vertexCount = 0);
////////////////////////////////////////////////////////////
/// \brief Return the vertex count

View File

@ -143,7 +143,7 @@ public :
/// \param message Response message
///
////////////////////////////////////////////////////////////
Response(Status code = InvalidResponse, const std::string& message = "");
explicit Response(Status code = InvalidResponse, const std::string& message = "");
////////////////////////////////////////////////////////////
/// \brief Check if the status code means a success

View File

@ -52,7 +52,7 @@ public :
/// \param mutex Mutex to lock
///
////////////////////////////////////////////////////////////
Lock(Mutex& mutex);
explicit Lock(Mutex& mutex);
////////////////////////////////////////////////////////////
/// \brief Destructor