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/SequentialDispatcherCommand.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/SequentialDispatcherCommand.h')
| -rw-r--r-- | src/SequentialDispatcherCommand.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/SequentialDispatcherCommand.h b/src/SequentialDispatcherCommand.h index 005d226f..9e0f1e36 100644 --- a/src/SequentialDispatcherCommand.h +++ b/src/SequentialDispatcherCommand.h @@ -36,7 +36,9 @@ #define D_SEQUENTIAL_DISPATCHER_COMMAND_H #include "Command.h" -#include "SharedHandle.h" + +#include <memory> + #include "SequentialPicker.h" #include "DownloadEngine.h" #include "RequestGroupMan.h" @@ -48,7 +50,7 @@ class DownloadEngine; template<typename T> class SequentialDispatcherCommand : public Command { private: - SharedHandle<SequentialPicker<T> > picker_; + std::shared_ptr<SequentialPicker<T> > picker_; DownloadEngine* e_; protected: @@ -58,7 +60,7 @@ protected: } public: SequentialDispatcherCommand(cuid_t cuid, - const SharedHandle<SequentialPicker<T> >& picker, + const std::shared_ptr<SequentialPicker<T> >& picker, DownloadEngine* e): Command(cuid), picker_(picker), e_(e) { @@ -81,7 +83,7 @@ public: } protected: - virtual Command* createCommand(const SharedHandle<T>& entry) = 0; + virtual Command* createCommand(const std::shared_ptr<T>& entry) = 0; }; } // namespace aria2 |
