RemoteRC: explicit single-argument constructors

This commit is contained in:
Jason Rhinelander 2023-12-11 15:13:49 -04:00 committed by dr7ana
parent aabd413ed6
commit eb62185160

View File

@ -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<const unsigned char*>(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;
}