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/FileAllocationEntry.h | |
| 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/FileAllocationEntry.h')
| -rw-r--r-- | src/FileAllocationEntry.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/FileAllocationEntry.h b/src/FileAllocationEntry.h index 811ade92..7d423da2 100644 --- a/src/FileAllocationEntry.h +++ b/src/FileAllocationEntry.h @@ -37,7 +37,8 @@ #include "RequestGroupEntry.h" #include "ProgressAwareEntry.h" -#include <deque> + +#include <vector> namespace aria2 { @@ -61,15 +62,12 @@ public: void allocateChunk(); - virtual void prepareForNextAction(std::deque<Command*>& commands, + virtual void prepareForNextAction(std::vector<Command*>& commands, DownloadEngine* e) = 0; void disableDirectIO(); }; -typedef SharedHandle<FileAllocationEntry> FileAllocationEntryHandle; -typedef std::deque<FileAllocationEntryHandle> FileAllocationEntries; - } // namespace aria2 #endif // _D_FILE_ALLOCATION_ENTRY_H_ |
