From eb621851605a56873a71109f8978228e55b39cf7 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Mon, 11 Dec 2023 15:13:49 -0400 Subject: [PATCH] RemoteRC: `explicit` single-argument constructors --- llarp/router_contact.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llarp/router_contact.hpp b/llarp/router_contact.hpp index 3723301cb..466d00719 100644 --- a/llarp/router_contact.hpp +++ b/llarp/router_contact.hpp @@ -316,11 +316,11 @@ namespace llarp public: RemoteRC() = default; - RemoteRC(std::string_view data) : RemoteRC{oxenc::bt_dict_consumer{data}} + explicit RemoteRC(std::string_view data) : RemoteRC{oxenc::bt_dict_consumer{data}} { _payload = {reinterpret_cast(data.data()), data.size()}; } - RemoteRC(ustring_view data) : RemoteRC{oxenc::bt_dict_consumer{data}} + explicit RemoteRC(ustring_view data) : RemoteRC{oxenc::bt_dict_consumer{data}} { _payload = data; }