mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 22:52:54 -04:00
Changed the reference pointer from last commit to const.
Need recompile again, sorry. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3510 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ed737e2c9f
commit
fff12a58c6
9 changed files with 11 additions and 11 deletions
|
@ -529,7 +529,7 @@ FileIndex::~FileIndex()
|
|||
delete root;
|
||||
}
|
||||
|
||||
int FileIndex::setRootDirectories(std::list<std::string> &inlist, time_t updtime)
|
||||
int FileIndex::setRootDirectories(const std::list<std::string> &inlist, time_t updtime)
|
||||
{
|
||||
/* set update time to zero */
|
||||
std::map<std::string, DirEntry *>::iterator it;
|
||||
|
@ -538,7 +538,7 @@ int FileIndex::setRootDirectories(std::list<std::string> &inlist, time_t updtime
|
|||
(it->second)->updtime = 0;
|
||||
}
|
||||
|
||||
std::list<std::string>::iterator ait;
|
||||
std::list<std::string>::const_iterator ait;
|
||||
FileEntry fe;
|
||||
time_t utime = 1;
|
||||
for(ait = inlist.begin(); ait != inlist.end(); ait++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue