removed channel delete feature

added optimisation suggestion with load/savelist

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3920 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-12-18 19:35:07 +00:00
parent d3a6f7316c
commit 2f559dae96
37 changed files with 133 additions and 388 deletions

View file

@ -729,9 +729,8 @@ RsSerialiser *CacheStrapper::setupSerialiser()
}
std::list<RsItem *> CacheStrapper::saveList(bool &cleanup)
bool CacheStrapper::saveList(bool &cleanup, std::list<RsItem *>& saveData)
{
std::list<RsItem *> saveData;
/* it can delete them! */
cleanup = true;
@ -810,11 +809,11 @@ std::list<RsItem *> CacheStrapper::saveList(bool &cleanup)
}
/* list completed! */
return saveData;
return true;
}
bool CacheStrapper::loadList(std::list<RsItem *> load)
bool CacheStrapper::loadList(std::list<RsItem *>& load)
{
std::list<RsItem *>::iterator it;
RsCacheConfig *rscc;

View file

@ -447,8 +447,8 @@ bool CacheExist(CacheData& data);
/* Key Functions to be overloaded for Full Configuration */
virtual RsSerialiser *setupSerialiser();
virtual std::list<RsItem *> saveList(bool &cleanup);
virtual bool loadList(std::list<RsItem *> load);
virtual bool saveList(bool &cleanup, std::list<RsItem *>&);
virtual bool loadList(std::list<RsItem *>& load);
private: