From 04a70520139efcfb287e329ae97e51ddf77605c6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 8 Feb 2008 18:39:26 +0000 Subject: 2008-02-09 Tatsuhiro Tsujikawa Added std namespace to copy, remove_copy, back_inserter, front_inserter. * src/RequestGroupMan.cc * src/DefaultPieceStorage.cc * src/StreamFileAllocationEntry.cc * src/BtFileAllocationEntry.cc * src/RequestGroup.cc * src/MetalinkEntry.cc * src/DelegatingPeerListProcessor.cc * src/DefaultBtRequestFactory.cc * src/DefaultBtMessageDispatcher.cc * src/version_usage.cc: Included * src/main.cc * src/MetalinkParserController.cc * src/DefaultBtContext.cc * src/DownloadEngineFactory.cc * src/a2algo.h Removed. * test/StreamUriListParserTest.cc --- src/StreamFileAllocationEntry.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index 20a161cb..c7db4a83 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -40,6 +40,7 @@ #include "prefs.h" #include "RequestGroup.h" #include "InitiateConnectionCommandFactory.h" +#include namespace aria2 { @@ -59,7 +60,7 @@ Commands StreamFileAllocationEntry::prepareForNextAction(DownloadEngine* e) commands.push_back(popNextCommand()); // try remaining uris Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, -1); - copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); + std::copy(streamCommands.begin(), streamCommands.end(), std::back_inserter(commands)); } else { if(_currentRequest.isNull()) { commands = _requestGroup->createNextCommandWithAdj(e, 0); @@ -69,7 +70,7 @@ Commands StreamFileAllocationEntry::prepareForNextAction(DownloadEngine* e) _currentRequest, _requestGroup, e); commands.push_back(command); - copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); + std::copy(streamCommands.begin(), streamCommands.end(), std::back_inserter(commands)); } } return commands; -- cgit