From c342bde9627b434effbc0cd10b817670d1da0923 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 28 Feb 2010 12:30:11 +0000 Subject: 2010-02-28 Tatsuhiro Tsujikawa Use vector instead of deque for containers which is used for mostly read-only purpose. --- src/FileAllocationCommand.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/FileAllocationCommand.cc') 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): RealtimeCommand(cuid, requestGroup, e), _fileAllocationEntry(fileAllocationEntry) {} @@ -68,7 +70,7 @@ bool FileAllocationCommand::executeInternal() } _e->_fileAllocationMan->dropPickedEntry(); - std::deque commands; + std::vector commands; try { _fileAllocationEntry->prepareForNextAction(commands, _e); } catch(RecoverableException& e) { -- cgit