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/UTMetadataPostDownloadHandler.cc | |
| 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/UTMetadataPostDownloadHandler.cc')
| -rw-r--r-- | src/UTMetadataPostDownloadHandler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/UTMetadataPostDownloadHandler.cc b/src/UTMetadataPostDownloadHandler.cc index ea07b602..3d8f7f10 100644 --- a/src/UTMetadataPostDownloadHandler.cc +++ b/src/UTMetadataPostDownloadHandler.cc @@ -74,7 +74,7 @@ UTMetadataPostDownloadHandler::UTMetadataPostDownloadHandler(): } void UTMetadataPostDownloadHandler::getNextRequestGroups -(std::deque<SharedHandle<RequestGroup> >& groups, RequestGroup* requestGroup) +(std::vector<SharedHandle<RequestGroup> >& groups, RequestGroup* requestGroup) { SharedHandle<DownloadContext> dctx = requestGroup->getDownloadContext(); const BDE& attrs = dctx->getAttribute(bittorrent::BITTORRENT); @@ -93,9 +93,9 @@ void UTMetadataPostDownloadHandler::getNextRequestGroups } } if(!requestGroup->getOption()->getAsBool(PREF_BT_METADATA_ONLY)) { - std::deque<SharedHandle<RequestGroup> > newRgs; + std::vector<SharedHandle<RequestGroup> > newRgs; createRequestGroupForBitTorrent(newRgs, requestGroup->getOption(), - std::deque<std::string>(), torrent); + std::vector<std::string>(), torrent); requestGroup->followedBy(newRgs.begin(), newRgs.end()); groups.insert(groups.end(), newRgs.begin(), newRgs.end()); |
