summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/FileAllocationCommand.h
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/FileAllocationCommand.h')
-rw-r--r--src/FileAllocationCommand.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FileAllocationCommand.h b/src/FileAllocationCommand.h
index ef38b5a2..cad28e4c 100644
--- a/src/FileAllocationCommand.h
+++ b/src/FileAllocationCommand.h
@@ -36,7 +36,9 @@
#define D_FILE_ALLOCATION_COMMAND_H
#include "RealtimeCommand.h"
-#include "SharedHandle.h"
+
+#include <memory>
+
#include "TimerA2.h"
namespace aria2 {
@@ -45,12 +47,12 @@ class FileAllocationEntry;
class FileAllocationCommand : public RealtimeCommand {
private:
- SharedHandle<FileAllocationEntry> fileAllocationEntry_;
+ std::shared_ptr<FileAllocationEntry> fileAllocationEntry_;
Timer timer_;
public:
FileAllocationCommand(cuid_t cuid, RequestGroup* requestGroup,
DownloadEngine* e,
- const SharedHandle<FileAllocationEntry>& fileAllocationEntry);
+ const std::shared_ptr<FileAllocationEntry>& fileAllocationEntry);
virtual ~FileAllocationCommand();