From c4606b84329d760d7cee144bebe05807857edaae Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 14 Dec 2018 14:50:21 +0100 Subject: Add Travis check for single parameter constructors not marked "explicit" --- src/interfaces/chain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces') diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index 161dd01ffe..02f39cef8e 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -205,7 +205,7 @@ public: class RpcHandlerImpl : public Handler { public: - RpcHandlerImpl(const CRPCCommand& command) : m_command(command), m_wrapped_command(&command) + explicit RpcHandlerImpl(const CRPCCommand& command) : m_command(command), m_wrapped_command(&command) { m_command.actor = [this](const JSONRPCRequest& request, UniValue& result, bool last_handler) { if (!m_wrapped_command) return false; -- cgit v1.2.3