(svn r18991) -Codechange: simplify memory management of DownloadSelectedContent

This commit is contained in:
rubidium
2010-02-03 17:12:19 +00:00
parent ff93d527e8
commit 6a4726020f
2 changed files with 11 additions and 9 deletions

View File

@@ -65,8 +65,9 @@ struct ContentCallback {
*/
class ClientNetworkContentSocketHandler : public NetworkContentSocketHandler, ContentCallback {
protected:
typedef SmallVector<ContentID, 4> ContentIDList;
SmallVector<ContentCallback *, 2> callbacks; ///< Callbacks to notify "the world"
SmallVector<ContentID, 4> requested; ///< ContentIDs we already requested (so we don't do it again)
ContentIDList requested; ///< ContentIDs we already requested (so we don't do it again)
ContentVector infos; ///< All content info we received
FILE *curFile; ///< Currently downloaded file