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/PeerInteractionCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/PeerInteractionCommand.h')
| -rw-r--r-- | src/PeerInteractionCommand.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/PeerInteractionCommand.h b/src/PeerInteractionCommand.h index 9dbdecbd..dae71ddc 100644 --- a/src/PeerInteractionCommand.h +++ b/src/PeerInteractionCommand.h @@ -57,16 +57,16 @@ public: private: RequestGroup* requestGroup_; - SharedHandle<BtRuntime> btRuntime_; + std::shared_ptr<BtRuntime> btRuntime_; - SharedHandle<PieceStorage> pieceStorage_; + std::shared_ptr<PieceStorage> pieceStorage_; - SharedHandle<PeerStorage> peerStorage_; + std::shared_ptr<PeerStorage> peerStorage_; Seq sequence_; - SharedHandle<BtInteractive> btInteractive_; + std::shared_ptr<BtInteractive> btInteractive_; - const SharedHandle<Option>& getOption() const; + const std::shared_ptr<Option>& getOption() const; protected: virtual bool executeInternal(); virtual bool prepareForNextPeer(time_t wait); @@ -76,15 +76,15 @@ protected: public: PeerInteractionCommand(cuid_t cuid, RequestGroup* requestGroup, - const SharedHandle<Peer>& peer, + const std::shared_ptr<Peer>& peer, DownloadEngine* e, - const SharedHandle<BtRuntime>& btRuntime, - const SharedHandle<PieceStorage>& pieceStorage, - const SharedHandle<PeerStorage>& peerStorage, - const SharedHandle<SocketCore>& s, + const std::shared_ptr<BtRuntime>& btRuntime, + const std::shared_ptr<PieceStorage>& pieceStorage, + const std::shared_ptr<PeerStorage>& peerStorage, + const std::shared_ptr<SocketCore>& s, Seq sequence, - const SharedHandle<PeerConnection>& peerConnection = - SharedHandle<PeerConnection>()); + const std::shared_ptr<PeerConnection>& peerConnection = + std::shared_ptr<PeerConnection>()); virtual ~PeerInteractionCommand(); }; |
