mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-16 10:01:14 -04:00
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:
parent
acf34cd7ad
commit
180ac6bc79
5 changed files with 5 additions and 6 deletions
|
@ -1586,7 +1586,7 @@ int FileIndexMonitor::RequestDirDetails(void *ref, DirDetails &details, FileSear
|
||||||
details.ref = NULL;
|
details.ref = NULL;
|
||||||
details.type = DIR_TYPE_ROOT;
|
details.type = DIR_TYPE_ROOT;
|
||||||
details.name = "root";
|
details.name = "root";
|
||||||
details.hash = "";
|
details.hash.clear() ;
|
||||||
details.path = "root";
|
details.path = "root";
|
||||||
details.age = 0;
|
details.age = 0;
|
||||||
details.flags.clear() ;
|
details.flags.clear() ;
|
||||||
|
|
|
@ -993,7 +993,6 @@ error:
|
||||||
|
|
||||||
int FileIndex::saveIndex(const std::string& filename, RsFileHash &fileHash, uint64_t &size,const std::set<std::string>& forbidden_dirs)
|
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 filenametmp = filename + ".tmp" ;
|
||||||
std::string s;
|
std::string s;
|
||||||
|
|
||||||
|
@ -1433,7 +1432,7 @@ bool FileIndex::extractData(void *ref,DirDetails& details)
|
||||||
details.type = DIR_TYPE_PERSON ;
|
details.type = DIR_TYPE_PERSON ;
|
||||||
else
|
else
|
||||||
details.type = DIR_TYPE_DIR;
|
details.type = DIR_TYPE_DIR;
|
||||||
details.hash = "";
|
details.hash.clear() ;
|
||||||
details.count = dir->subdirs.size() + dir->files.size();
|
details.count = dir->subdirs.size() + dir->files.size();
|
||||||
details.min_age = now - dir->most_recent_time ;
|
details.min_age = now - dir->most_recent_time ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -263,7 +263,7 @@ int FileIndexStore::RequestDirDetails(void *ref, DirDetails &details, FileSearch
|
||||||
details.ref = NULL;
|
details.ref = NULL;
|
||||||
details.type = DIR_TYPE_ROOT;
|
details.type = DIR_TYPE_ROOT;
|
||||||
details.name = "";
|
details.name = "";
|
||||||
details.hash = "";
|
details.hash.clear() ;
|
||||||
details.path = "";
|
details.path = "";
|
||||||
details.count = indices.size();
|
details.count = indices.size();
|
||||||
details.age = 0;
|
details.age = 0;
|
||||||
|
|
|
@ -1479,7 +1479,7 @@ void RsCacheConfig::clear()
|
||||||
cachesubid = 0;
|
cachesubid = 0;
|
||||||
path = "";
|
path = "";
|
||||||
name = "";
|
name = "";
|
||||||
hash = "";
|
hash.clear() ;
|
||||||
size = 0;
|
size = 0;
|
||||||
recvd = 0;
|
recvd = 0;
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ RsTlvFileItem::RsTlvFileItem()
|
||||||
void RsTlvFileItem::TlvClear()
|
void RsTlvFileItem::TlvClear()
|
||||||
{
|
{
|
||||||
filesize = 0;
|
filesize = 0;
|
||||||
hash = "";
|
hash.clear() ;
|
||||||
name.clear();
|
name.clear();
|
||||||
path.clear();
|
path.clear();
|
||||||
pop = 0;
|
pop = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue