diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
| commit | c342bde9627b434effbc0cd10b817670d1da0923 (patch) | |
| tree | 60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/FileAllocationCommand.cc | |
| parent | 135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (diff) | |
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for
mostly read-only purpose.
Diffstat (limited to 'src/FileAllocationCommand.cc')
| -rw-r--r-- | src/FileAllocationCommand.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc index 48615624..94260f34 100644 --- a/src/FileAllocationCommand.cc +++ b/src/FileAllocationCommand.cc @@ -48,7 +48,9 @@ namespace aria2 { -FileAllocationCommand::FileAllocationCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e, const FileAllocationEntryHandle& fileAllocationEntry): +FileAllocationCommand::FileAllocationCommand +(int cuid, RequestGroup* requestGroup, DownloadEngine* e, + const SharedHandle<FileAllocationEntry>& fileAllocationEntry): RealtimeCommand(cuid, requestGroup, e), _fileAllocationEntry(fileAllocationEntry) {} @@ -68,7 +70,7 @@ bool FileAllocationCommand::executeInternal() } _e->_fileAllocationMan->dropPickedEntry(); - std::deque<Command*> commands; + std::vector<Command*> commands; try { _fileAllocationEntry->prepareForNextAction(commands, _e); } catch(RecoverableException& e) { |
