mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
RemoteRC: explicit
single-argument constructors
This commit is contained in:
parent
aabd413ed6
commit
eb62185160
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user