diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 21:12:55 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-07-06 22:03:37 +0900 |
| commit | 3f5f1e26d9932a00caffb4866e8a277b7477fa47 (patch) | |
| tree | 3c385ccb72be03e3326a2da682f555ae7954fc8c /src/PeerReceiveHandshakeCommand.h | |
| parent | 3c66c18489bb7e4f828fc5107299174cbc4ee4e5 (diff) | |
Refactor PeerInterationCommand ctor
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(); }; |
