diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/InitiatorMSEHandshakeCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/InitiatorMSEHandshakeCommand.h')
| -rw-r--r-- | src/InitiatorMSEHandshakeCommand.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/InitiatorMSEHandshakeCommand.h b/src/InitiatorMSEHandshakeCommand.h index 5b44abcb..5e80ca76 100644 --- a/src/InitiatorMSEHandshakeCommand.h +++ b/src/InitiatorMSEHandshakeCommand.h @@ -60,16 +60,16 @@ public: private: RequestGroup* requestGroup_; - SharedHandle<PeerStorage> peerStorage_; + std::shared_ptr<PeerStorage> peerStorage_; - SharedHandle<PieceStorage> pieceStorage_; + std::shared_ptr<PieceStorage> pieceStorage_; - SharedHandle<BtRuntime> btRuntime_; + std::shared_ptr<BtRuntime> btRuntime_; Seq sequence_; MSEHandshake* mseHandshake_; - const SharedHandle<Option>& getOption() const; + const std::shared_ptr<Option>& getOption() const; void tryNewPeer(); protected: @@ -81,16 +81,16 @@ public: InitiatorMSEHandshakeCommand (cuid_t cuid, RequestGroup* requestGroup, - const SharedHandle<Peer>& peer, + const std::shared_ptr<Peer>& peer, DownloadEngine* e, - const SharedHandle<BtRuntime>& btRuntime, - const SharedHandle<SocketCore>& s); + const std::shared_ptr<BtRuntime>& btRuntime, + const std::shared_ptr<SocketCore>& s); virtual ~InitiatorMSEHandshakeCommand(); - void setPeerStorage(const SharedHandle<PeerStorage>& peerStorage); + void setPeerStorage(const std::shared_ptr<PeerStorage>& peerStorage); - void setPieceStorage(const SharedHandle<PieceStorage>& pieceStorage); + void setPieceStorage(const std::shared_ptr<PieceStorage>& pieceStorage); }; } // namespace aria2 |
