2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Receive the return value as const reference from
	DownloadContext::getFileEntries().
	* src/DefaultPieceStorage.cc
	* src/RequestGroupMan.cc
	* src/XmlRpcMethodImpl.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2009-06-14 11:17:20 +00:00
parent 39472a64eb
commit 85db426de5
4 changed files with 12 additions and 4 deletions

View file

@ -396,7 +396,7 @@ BDE GetFilesXmlRpcMethod::process
createFileEntry(files, dr->fileEntries.begin(), dr->fileEntries.end());
}
} else {
std::deque<SharedHandle<FileEntry> > fileEntries =
const std::deque<SharedHandle<FileEntry> >& fileEntries =
group->getDownloadContext()->getFileEntries();
createFileEntry(files, fileEntries.begin(), fileEntries.end());
}