common: const and init list pedantry

This commit is contained in:
moneromooo-monero 2015-10-27 09:35:08 +00:00
parent 9292c1e7cd
commit e70d2e5be8
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 3 additions and 2 deletions

View file

@ -46,6 +46,7 @@ public:
, uint16_t port
)
: mp_http_client(p_http_client)
, m_ok(false)
{
// TODO fix http client so that it accepts properly typed arguments
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;
}

View file

@ -54,7 +54,7 @@ namespace tools
, 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 =
"http://"