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/StreamCheckIntegrityEntry.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/StreamCheckIntegrityEntry.cc') diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc index 8295f6a0..27430ebd 100644 --- a/src/StreamCheckIntegrityEntry.cc +++ b/src/StreamCheckIntegrityEntry.cc @@ -48,15 +48,15 @@ StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(RequestGroup* requestGroup, StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} void StreamCheckIntegrityEntry::onDownloadIncomplete -(std::deque& commands, DownloadEngine* e) +(std::vector& commands, DownloadEngine* e) { - FileAllocationEntryHandle entry + SharedHandle entry (new StreamFileAllocationEntry(_requestGroup, popNextCommand())); proceedFileAllocation(commands, entry, e); } -void StreamCheckIntegrityEntry::onDownloadFinished(std::deque& commands, - DownloadEngine* e) +void StreamCheckIntegrityEntry::onDownloadFinished +(std::vector& commands, DownloadEngine* e) {} } // namespace aria2 -- cgit