From afb9c528e7bd7cdef34f969a79a4498642c04331 Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Mon, 24 Feb 2020 18:25:25 +0100 Subject: [PATCH] made c'tor explicit; disallow copy and assign --- test/webfuse/tests/provider/test_client_protocol.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/webfuse/tests/provider/test_client_protocol.cc b/test/webfuse/tests/provider/test_client_protocol.cc index 8aa3a81..ff7be74 100644 --- a/test/webfuse/tests/provider/test_client_protocol.cc +++ b/test/webfuse/tests/provider/test_client_protocol.cc @@ -21,8 +21,10 @@ namespace class ClientProtocolFixture { + ClientProtocolFixture(ClientProtocolFixture const &) = delete; + ClientProtocolFixture& operator=(ClientProtocolFixture const &) = delete; public: - ClientProtocolFixture(IProviderClient& client) + explicit ClientProtocolFixture(IProviderClient& client) { config = wfp_client_config_create(); client.AttachTo(config);