Mark constructors explicit

This commit is contained in:
Alex Beregszaszi 2017-08-30 22:43:01 +01:00
parent aad829948a
commit 1c0c5d923a
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ namespace smt
class SMTLib2Interface: public SolverInterface, public boost::noncopyable
{
public:
SMTLib2Interface(ReadCallback::Callback const& _queryCallback);
explicit SMTLib2Interface(ReadCallback::Callback const& _queryCallback);
void reset() override;

View File

@ -40,7 +40,7 @@
class IPCSocket : public boost::noncopyable
{
public:
IPCSocket(std::string const& _path);
explicit IPCSocket(std::string const& _path);
std::string sendRequest(std::string const& _req);
~IPCSocket() { CloseHandle(m_socket); }
@ -55,7 +55,7 @@ private:
class IPCSocket: public boost::noncopyable
{
public:
IPCSocket(std::string const& _path);
explicit IPCSocket(std::string const& _path);
std::string sendRequest(std::string const& _req);
~IPCSocket() { close(m_socket); }