mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
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:
parent
d3a6f7316c
commit
2f559dae96
37 changed files with 133 additions and 388 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue