diff options
author | Sergey Kazenyuk <sergey@kazenyuk.com> | 2015-04-20 20:17:11 +0300 |
---|---|---|
committer | Sergey Kazenyuk <sergey@kazenyuk.com> | 2015-04-20 20:17:11 +0300 |
commit | 2ff0d757eb0ce000f222e03cd217e2cc7b47d5f7 (patch) | |
tree | 31d978b9173e7ad8df78a5bae3f23c64333f45e8 | |
parent | Suppress 'register storage class is deprecated' warning in boost dependency l... (diff) | |
download | monero-2ff0d757eb0ce000f222e03cd217e2cc7b47d5f7.tar.xz |
Fix missing virtual destructor
-rw-r--r-- | src/p2p/net_node.h | 2 | ||||
-rw-r--r-- | src/p2p/net_node.inl | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 53a13f327..220bda0c2 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -89,6 +89,8 @@ namespace nodetool , m_hide_my_port(false) , m_network_id(std::move(network_id)) {} + virtual ~node_server() + {} static void init_options(boost::program_options::options_description& desc); diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 01fbaa497..b6337e6b5 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -82,7 +82,6 @@ namespace nodetool const command_line::arg_descriptor<std::vector<std::string> > arg_p2p_seed_node = {"seed-node", "Connect to a node to retrieve peer addresses, and disconnect"}; const command_line::arg_descriptor<bool> arg_p2p_hide_my_port = {"hide-my-port", "Do not announce yourself as peerlist candidate", false, true}; } - //----------------------------------------------------------------------------------- template<class t_payload_net_handler> void node_server<t_payload_net_handler>::init_options(boost::program_options::options_description& desc) @@ -96,7 +95,8 @@ namespace nodetool command_line::add_arg(desc, arg_p2p_add_priority_node); command_line::add_arg(desc, arg_p2p_add_exclusive_node); command_line::add_arg(desc, arg_p2p_seed_node); - command_line::add_arg(desc, arg_p2p_hide_my_port); } + command_line::add_arg(desc, arg_p2p_hide_my_port); + } //----------------------------------------------------------------------------------- template<class t_payload_net_handler> bool node_server<t_payload_net_handler>::init_config() |