summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityEntry.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-28 12:30:11 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-28 12:30:11 +0000
commitc342bde9627b434effbc0cd10b817670d1da0923 (patch)
tree60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/CheckIntegrityEntry.h
parent135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (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/CheckIntegrityEntry.h')
-rw-r--r--src/CheckIntegrityEntry.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/CheckIntegrityEntry.h b/src/CheckIntegrityEntry.h
index 899d1728..6c7110cb 100644
--- a/src/CheckIntegrityEntry.h
+++ b/src/CheckIntegrityEntry.h
@@ -37,7 +37,8 @@
#include "RequestGroupEntry.h"
#include "ProgressAwareEntry.h"
-#include <deque>
+
+#include <vector>
namespace aria2 {
@@ -50,7 +51,7 @@ class CheckIntegrityEntry : public RequestGroupEntry,
protected:
SharedHandle<IteratableValidator> _validator;
- void proceedFileAllocation(std::deque<Command*>& commands,
+ void proceedFileAllocation(std::vector<Command*>& commands,
const SharedHandle<FileAllocationEntry>& entry,
DownloadEngine* e);
public:
@@ -70,18 +71,15 @@ public:
virtual void initValidator() = 0;
- virtual void onDownloadFinished(std::deque<Command*>& commands,
+ virtual void onDownloadFinished(std::vector<Command*>& commands,
DownloadEngine* e) = 0;
- virtual void onDownloadIncomplete(std::deque<Command*>& commands,
+ virtual void onDownloadIncomplete(std::vector<Command*>& commands,
DownloadEngine* e) = 0;
void cutTrailingGarbage();
};
-typedef SharedHandle<CheckIntegrityEntry> CheckIntegrityEntryHandle;
-typedef std::deque<CheckIntegrityEntryHandle> CheckIntegrityEntries;
-
} // namespace aria2
#endif // _D_CHECK_INTEGRITY_ENTRY_H_