From f4d458f77d34066bdd0f9803ee5329214f179fcb Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 28 May 2012 03:40:44 -0700 Subject: [PATCH] Trap attempts to duplicate unduplicatable instances. --- src/RPCServer.h | 5 ++++- src/Wallet.h | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/RPCServer.h b/src/RPCServer.h index 86994cbf3..ee6cab8dd 100644 --- a/src/RPCServer.h +++ b/src/RPCServer.h @@ -11,7 +11,7 @@ #include "SerializedLedger.h" #include "NetworkOPs.h" -class RPCServer : public boost::enable_shared_from_this +class RPCServer : public boost::enable_shared_from_this { private: NetworkOPs* mNetOps; @@ -25,6 +25,9 @@ private: RPCServer(boost::asio::io_service& io_service, NetworkOPs* nopNetwork); + RPCServer(const RPCServer&); // no implementation + RPCServer& operator=(const RPCServer&); // no implementation + void handle_write(const boost::system::error_code& error); void handle_read(const boost::system::error_code& e, std::size_t bytes_transferred); diff --git a/src/Wallet.h b/src/Wallet.h index e900f6d12..982f80a91 100644 --- a/src/Wallet.h +++ b/src/Wallet.h @@ -25,6 +25,9 @@ private: bool nodeIdentityLoad(); bool nodeIdentityCreate(); + Wallet(const Wallet&); // no implementation + Wallet& operator=(const Wallet&); // no implementation + protected: boost::recursive_mutex mLock;