mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 18:28:52 +00:00
common: const and init list pedantry
This commit is contained in:
parent
9292c1e7cd
commit
e70d2e5be8
@ -46,6 +46,7 @@ public:
|
|||||||
, uint16_t port
|
, uint16_t port
|
||||||
)
|
)
|
||||||
: mp_http_client(p_http_client)
|
: mp_http_client(p_http_client)
|
||||||
|
, m_ok(false)
|
||||||
{
|
{
|
||||||
// TODO fix http client so that it accepts properly typed arguments
|
// TODO fix http client so that it accepts properly typed arguments
|
||||||
std::string ip_str = epee::string_tools::get_ip_string_from_int32(ip);
|
std::string ip_str = epee::string_tools::get_ip_string_from_int32(ip);
|
||||||
@ -61,7 +62,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_open()
|
bool is_open() const
|
||||||
{
|
{
|
||||||
return m_ok;
|
return m_ok;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ namespace tools
|
|||||||
, m_port{port}
|
, m_port{port}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string build_url(std::string const & relative_url)
|
std::string build_url(std::string const & relative_url) const
|
||||||
{
|
{
|
||||||
std::string result =
|
std::string result =
|
||||||
"http://"
|
"http://"
|
||||||
|
Loading…
Reference in New Issue
Block a user