From 74f9388f3135ded7004666e818b37feb8b35444c Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Tue, 27 Mar 2012 17:13:46 +0200 Subject: [PATCH] Made some 1 argument constructors explicit --- include/SFML/Audio/Sound.hpp | 2 +- include/SFML/Graphics/VertexArray.hpp | 2 +- include/SFML/Network/Ftp.hpp | 2 +- include/SFML/System/Lock.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/SFML/Audio/Sound.hpp b/include/SFML/Audio/Sound.hpp index f68852e8..3d53fe6c 100644 --- a/include/SFML/Audio/Sound.hpp +++ b/include/SFML/Audio/Sound.hpp @@ -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 diff --git a/include/SFML/Graphics/VertexArray.hpp b/include/SFML/Graphics/VertexArray.hpp index c52b6c20..1c2ebee4 100644 --- a/include/SFML/Graphics/VertexArray.hpp +++ b/include/SFML/Graphics/VertexArray.hpp @@ -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 diff --git a/include/SFML/Network/Ftp.hpp b/include/SFML/Network/Ftp.hpp index a5ab108a..55d09599 100644 --- a/include/SFML/Network/Ftp.hpp +++ b/include/SFML/Network/Ftp.hpp @@ -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 diff --git a/include/SFML/System/Lock.hpp b/include/SFML/System/Lock.hpp index e6996776..c5667db9 100644 --- a/include/SFML/System/Lock.hpp +++ b/include/SFML/System/Lock.hpp @@ -52,7 +52,7 @@ public : /// \param mutex Mutex to lock /// //////////////////////////////////////////////////////////// - Lock(Mutex& mutex); + explicit Lock(Mutex& mutex); //////////////////////////////////////////////////////////// /// \brief Destructor