fixed a few small issues with ids

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-IdCleaning@7138 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-02-20 21:29:08 +00:00
parent acf34cd7ad
commit 180ac6bc79
5 changed files with 5 additions and 6 deletions

View file

@ -1586,7 +1586,7 @@ int FileIndexMonitor::RequestDirDetails(void *ref, DirDetails &details, FileSear
details.ref = NULL;
details.type = DIR_TYPE_ROOT;
details.name = "root";
details.hash = "";
details.hash.clear() ;
details.path = "root";
details.age = 0;
details.flags.clear() ;

View file

@ -993,7 +993,6 @@ error:
int FileIndex::saveIndex(const std::string& filename, RsFileHash &fileHash, uint64_t &size,const std::set<std::string>& forbidden_dirs)
{
unsigned char sha_buf[SHA_DIGEST_LENGTH];
std::string filenametmp = filename + ".tmp" ;
std::string s;
@ -1433,7 +1432,7 @@ bool FileIndex::extractData(void *ref,DirDetails& details)
details.type = DIR_TYPE_PERSON ;
else
details.type = DIR_TYPE_DIR;
details.hash = "";
details.hash.clear() ;
details.count = dir->subdirs.size() + dir->files.size();
details.min_age = now - dir->most_recent_time ;
}

View file

@ -263,7 +263,7 @@ int FileIndexStore::RequestDirDetails(void *ref, DirDetails &details, FileSearch
details.ref = NULL;
details.type = DIR_TYPE_ROOT;
details.name = "";
details.hash = "";
details.hash.clear() ;
details.path = "";
details.count = indices.size();
details.age = 0;

View file

@ -1479,7 +1479,7 @@ void RsCacheConfig::clear()
cachesubid = 0;
path = "";
name = "";
hash = "";
hash.clear() ;
size = 0;
recvd = 0;

View file

@ -43,7 +43,7 @@ RsTlvFileItem::RsTlvFileItem()
void RsTlvFileItem::TlvClear()
{
filesize = 0;
hash = "";
hash.clear() ;
name.clear();
path.clear();
pop = 0;