diff options
Diffstat (limited to 'src/PeerReceiveHandshakeCommand.h')
| -rw-r--r-- | src/PeerReceiveHandshakeCommand.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PeerReceiveHandshakeCommand.h b/src/PeerReceiveHandshakeCommand.h index c7b76029..5a020917 100644 --- a/src/PeerReceiveHandshakeCommand.h +++ b/src/PeerReceiveHandshakeCommand.h @@ -46,7 +46,7 @@ class Peer; class PeerReceiveHandshakeCommand:public PeerAbstractCommand { private: - std::shared_ptr<PeerConnection> peerConnection_; + std::unique_ptr<PeerConnection> peerConnection_; protected: virtual bool executeInternal() CXX11_OVERRIDE; virtual bool exitBeforeExecute() CXX11_OVERRIDE; @@ -56,8 +56,7 @@ public: const std::shared_ptr<Peer>& peer, DownloadEngine* e, const std::shared_ptr<SocketCore>& s, - const std::shared_ptr<PeerConnection>& peerConnection = - std::shared_ptr<PeerConnection>()); + std::unique_ptr<PeerConnection> peerConnection = nullptr); virtual ~PeerReceiveHandshakeCommand(); }; |
