mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
fix: made some c'tors explicit
This commit is contained in:
parent
82fb5c53bf
commit
1f7a3f4bc9
@ -77,7 +77,7 @@ namespace webfuse_test
|
|||||||
class FakeAdapterServer::Private: public IServer
|
class FakeAdapterServer::Private: public IServer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Private(int port)
|
explicit Private(int port)
|
||||||
: client_wsi(nullptr)
|
: client_wsi(nullptr)
|
||||||
, message_received(false)
|
, message_received(false)
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ class FakeAdapterServer
|
|||||||
FakeAdapterServer(FakeAdapterServer const &) = delete;
|
FakeAdapterServer(FakeAdapterServer const &) = delete;
|
||||||
FakeAdapterServer & operator=(FakeAdapterServer const &) = delete;
|
FakeAdapterServer & operator=(FakeAdapterServer const &) = delete;
|
||||||
public:
|
public:
|
||||||
FakeAdapterServer(int port);
|
explicit FakeAdapterServer(int port);
|
||||||
~FakeAdapterServer();
|
~FakeAdapterServer();
|
||||||
void waitForConnection();
|
void waitForConnection();
|
||||||
private:
|
private:
|
||||||
|
@ -11,7 +11,7 @@ class TimeoutWatcher final
|
|||||||
TimeoutWatcher(TimeoutWatcher const & other) = delete;
|
TimeoutWatcher(TimeoutWatcher const & other) = delete;
|
||||||
TimeoutWatcher& operator=(TimeoutWatcher const & other) = delete;
|
TimeoutWatcher& operator=(TimeoutWatcher const & other) = delete;
|
||||||
public:
|
public:
|
||||||
TimeoutWatcher(std::chrono::milliseconds timeout);
|
explicit TimeoutWatcher(std::chrono::milliseconds timeout);
|
||||||
~TimeoutWatcher();
|
~TimeoutWatcher();
|
||||||
bool isTimeout();
|
bool isTimeout();
|
||||||
void check();
|
void check();
|
||||||
|
Loading…
Reference in New Issue
Block a user