2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Pass std::deque<Command*> by reference to avoid unnecessary coping.
	* src/AbstractCommand.cc
	* src/BtCheckIntegrityEntry.cc
	* src/BtCheckIntegrityEntry.h
	* src/BtFileAllocationEntry.cc
	* src/BtFileAllocationEntry.h
	* src/BtSetup.cc
	* src/BtSetup.h
	* src/CheckIntegrityCommand.cc
	* src/CheckIntegrityEntry.h
	* src/ChecksumCheckIntegrityEntry.cc
	* src/ChecksumCheckIntegrityEntry.h
	* src/DHTSetup.cc
	* src/DHTSetup.h
	* src/DownloadEngine.cc
	* src/FileAllocationCommand.cc
	* src/FileAllocationEntry.h
	* src/RequestGroup.cc
	* src/RequestGroup.h
	* src/RequestGroupMan.cc
	* src/RequestGroupMan.h
	* src/StreamCheckIntegrityEntry.cc
	* src/StreamCheckIntegrityEntry.h
	* src/StreamFileAllocationEntry.cc
	* src/StreamFileAllocationEntry.h
	* src/TrackerWatcherCommand.cc
	* src/a2functional.h
This commit is contained in:
Tatsuhiro Tsujikawa 2008-05-11 09:36:39 +00:00
parent 6d78a7656d
commit 825cfe7715
27 changed files with 188 additions and 125 deletions

View file

@ -54,9 +54,11 @@ public:
virtual ~StreamCheckIntegrityEntry();
virtual std::deque<Command*> onDownloadFinished(DownloadEngine* e);
virtual void onDownloadFinished(std::deque<Command*>& commands,
DownloadEngine* e);
virtual std::deque<Command*> onDownloadIncomplete(DownloadEngine* e);
virtual void onDownloadIncomplete(std::deque<Command*>& commands,
DownloadEngine* e);
};
typedef SharedHandle<StreamCheckIntegrityEntry> StreamCheckIntegrityEntryHandle;