Fixing shared->unique assignment and no return in control flow. (#4529)
This commit is contained in:
parent
0b83fa6d56
commit
f6ad9d7800
2 changed files with 2 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ int run_wallet (QApplication & application, int argc, char * const * argv, std::
|
||||||
nano::ipc::ipc_server ipc (*node, config.rpc);
|
nano::ipc::ipc_server ipc (*node, config.rpc);
|
||||||
|
|
||||||
std::unique_ptr<boost::process::child> rpc_process;
|
std::unique_ptr<boost::process::child> rpc_process;
|
||||||
std::unique_ptr<nano::rpc> rpc;
|
std::shared_ptr<nano::rpc> rpc;
|
||||||
std::unique_ptr<nano::rpc_handler_interface> rpc_handler;
|
std::unique_ptr<nano::rpc_handler_interface> rpc_handler;
|
||||||
if (config.rpc_enable)
|
if (config.rpc_enable)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -97,4 +97,5 @@ std::shared_ptr<nano::rpc> nano::get_rpc (std::shared_ptr<boost::asio::io_contex
|
||||||
{
|
{
|
||||||
return std::make_shared<nano::rpc> (io_ctx_a, config_a, rpc_handler_interface_a);
|
return std::make_shared<nano::rpc> (io_ctx_a, config_a, rpc_handler_interface_a);
|
||||||
}
|
}
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue