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/DHTEntryPointNameResolveCommand.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/DHTEntryPointNameResolveCommand.h') diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h index dadf2993..85c9c92a 100644 --- a/src/DHTEntryPointNameResolveCommand.h +++ b/src/DHTEntryPointNameResolveCommand.h @@ -36,10 +36,13 @@ #define _D_DHT_ENTRY_POINT_NAME_RESOVE_COMMAND_H_ #include "Command.h" -#include "SharedHandle.h" + #include +#include #include +#include "SharedHandle.h" + namespace aria2 { class DHTTaskQueue; @@ -69,7 +72,7 @@ private: std::deque > _entryPoints; - std::deque > _resolvedEntryPoints; + std::vector > _resolvedEntryPoints; bool _bootstrapEnabled; @@ -85,8 +88,9 @@ private: #endif // ENABLE_ASYNC_DNS public: - DHTEntryPointNameResolveCommand(int32_t cuid, DownloadEngine* e, - const std::deque >& entryPoints); + DHTEntryPointNameResolveCommand + (int32_t cuid, DownloadEngine* e, + const std::vector >& entryPoints); virtual ~DHTEntryPointNameResolveCommand(); -- cgit