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/DownloadEngine.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/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index fc282bf3..3adfe31c 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -40,6 +40,7 @@ #include <string> #include <deque> #include <map> +#include <vector> #include "SharedHandle.h" #include "a2netcompat.h" @@ -184,7 +185,7 @@ public: Command* command); #endif // ENABLE_ASYNC_DNS - void addCommand(const std::deque<Command*>& commands); + void addCommand(const std::vector<Command*>& commands); void setStatCalc(const SharedHandle<StatCalc>& statCalc); @@ -228,12 +229,12 @@ public: uint16_t port); SharedHandle<SocketCore> - popPooledSocket(const std::deque<std::string>& ipaddrs, uint16_t port); + popPooledSocket(const std::vector<std::string>& ipaddrs, uint16_t port); SharedHandle<SocketCore> popPooledSocket (std::map<std::string, std::string>& options, - const std::deque<std::string>& ipaddrs, + const std::vector<std::string>& ipaddrs, uint16_t port); const SharedHandle<CookieStorage>& getCookieStorage() const |
