aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-10-30 09:58:14 +0200
committerRiccardo Spagni <ric@spagni.net>2015-10-30 09:58:18 +0200
commit167e8512ff560421e238bfc980610f1016b5a0b7 (patch)
treebac25af8f89633a038f55f91ef9fe0d760adf1ba /src
parentMerge pull request #455 (diff)
parentcommon: const and init list pedantry (diff)
downloadmonero-167e8512ff560421e238bfc980610f1016b5a0b7.tar.xz
Merge pull request #457
e70d2e5 common: const and init list pedantry (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/common/http_connection.h3
-rw-r--r--src/common/rpc_client.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/http_connection.h b/src/common/http_connection.h
index c192e79b6..06024b02a 100644
--- a/src/common/http_connection.h
+++ b/src/common/http_connection.h
@@ -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;
}
diff --git a/src/common/rpc_client.h b/src/common/rpc_client.h
index dc9f32c25..2e460912a 100644
--- a/src/common/rpc_client.h
+++ b/src/common/rpc_client.h
@@ -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://"