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/PeerInteractionCommand.h | |
| parent | 3c66c18489bb7e4f828fc5107299174cbc4ee4e5 (diff) | |
Refactor PeerInterationCommand ctor
Diffstat (limited to 'src/PeerInteractionCommand.h')
| -rw-r--r-- | src/PeerInteractionCommand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PeerInteractionCommand.h b/src/PeerInteractionCommand.h index f31326b8..e59e561e 100644 --- a/src/PeerInteractionCommand.h +++ b/src/PeerInteractionCommand.h @@ -64,7 +64,7 @@ private: std::shared_ptr<PeerStorage> peerStorage_; Seq sequence_; - std::shared_ptr<BtInteractive> btInteractive_; + std::unique_ptr<BtInteractive> btInteractive_; const std::shared_ptr<Option>& getOption() const; protected: @@ -83,8 +83,8 @@ public: const std::shared_ptr<PeerStorage>& peerStorage, const std::shared_ptr<SocketCore>& s, Seq sequence, - const std::shared_ptr<PeerConnection>& peerConnection = - std::shared_ptr<PeerConnection>()); + std::unique_ptr<PeerConnection> peerConnection = + nullptr); virtual ~PeerInteractionCommand(); }; |
