From 3e53d0bdeea8f79b956f7b9ad57f009601a5f700 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 3 Dec 2014 09:37:34 +0100 Subject: [PATCH] Replace auto_ptr by shared_ptr. --- eth/main.cpp | 6 +++--- neth/main.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eth/main.cpp b/eth/main.cpp index 9b63e0643..9485a11bf 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -337,10 +337,10 @@ int main(int argc, char** argv) web3.connect(remoteHost, remotePort); #if ETH_JSONRPC - auto_ptr jsonrpcServer; + shared_ptr jsonrpcServer; if (jsonrpc > -1) { - jsonrpcServer = auto_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(jsonrpc), web3, {us})); + jsonrpcServer = shared_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(jsonrpc), web3, {us})); jsonrpcServer->setIdentities({us}); jsonrpcServer->StartListening(); } @@ -428,7 +428,7 @@ int main(int argc, char** argv) { if (jsonrpc < 0) jsonrpc = 8080; - jsonrpcServer = auto_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(jsonrpc), web3, {us})); + jsonrpcServer = make_shared(new jsonrpc::CorsHttpServer(jsonrpc), web3, vector({us})); jsonrpcServer->setIdentities({us}); jsonrpcServer->StartListening(); } diff --git a/neth/main.cpp b/neth/main.cpp index cb6d35593..82968bf03 100644 --- a/neth/main.cpp +++ b/neth/main.cpp @@ -475,10 +475,10 @@ int main(int argc, char** argv) c.startMining(); #if ETH_JSONRPC - auto_ptr jsonrpcServer; + shared_ptr jsonrpcServer; if (jsonrpc > -1) { - jsonrpcServer = auto_ptr(new WebThreeStubServer(new jsonrpc::HttpServer(jsonrpc), web3, {us})); + jsonrpcServer = make_shared(new jsonrpc::HttpServer(jsonrpc), web3, vector({us})); jsonrpcServer->setIdentities({us}); jsonrpcServer->StartListening(); } @@ -552,7 +552,7 @@ int main(int argc, char** argv) { if (jsonrpc < 0) jsonrpc = 8080; - jsonrpcServer = auto_ptr(new WebThreeStubServer(new jsonrpc::HttpServer(jsonrpc), web3, {us})); + jsonrpcServer = make_shared(new jsonrpc::HttpServer(jsonrpc), web3, vector({us})); jsonrpcServer->setIdentities({us}); jsonrpcServer->StartListening(); }