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/BtStopDownloadCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/BtStopDownloadCommand.h')
| -rw-r--r-- | src/BtStopDownloadCommand.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/BtStopDownloadCommand.h b/src/BtStopDownloadCommand.h index 156ded76..b0dec361 100644 --- a/src/BtStopDownloadCommand.h +++ b/src/BtStopDownloadCommand.h @@ -36,7 +36,8 @@ #define D_BT_STOP_DOWNLOAD_COMMAND_H #include "TimeBasedCommand.h" -#include "SharedHandle.h" + +#include <memory> namespace aria2 { @@ -54,9 +55,9 @@ private: Timer checkPoint_; - SharedHandle<BtRuntime> btRuntime_; + std::shared_ptr<BtRuntime> btRuntime_; - SharedHandle<PieceStorage> pieceStorage_; + std::shared_ptr<PieceStorage> pieceStorage_; public: BtStopDownloadCommand (cuid_t cuid, @@ -68,12 +69,12 @@ public: virtual void process(); - void setBtRuntime(const SharedHandle<BtRuntime>& btRuntime) + void setBtRuntime(const std::shared_ptr<BtRuntime>& btRuntime) { btRuntime_ = btRuntime; } - void setPieceStorage(const SharedHandle<PieceStorage>& pieceStorage) + void setPieceStorage(const std::shared_ptr<PieceStorage>& pieceStorage) { pieceStorage_ = pieceStorage; } |
