mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
Optimized parameter "hash" of method RsFiles::FileDetails from "std::string" to "const std::string&"
Removed compiler warning of FileEntry. Recompile of the GUI needed. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3703 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5809e25a60
commit
ab5b2a3851
16 changed files with 25 additions and 24 deletions
|
@ -80,7 +80,7 @@ class FileEntry
|
|||
{
|
||||
public:
|
||||
FileEntry()
|
||||
:parent(NULL), row(0) ,size(0),modtime(0),pop(0),updtime(0)
|
||||
: size(0), modtime(0), pop(0), updtime(0), parent(NULL), row(0)
|
||||
{ return; }
|
||||
|
||||
virtual ~FileEntry() { return; }
|
||||
|
|
|
@ -190,11 +190,12 @@ int FileIndexStore::RequestDirDetails(void *ref, DirDetails &details, uint32_t f
|
|||
|
||||
lockData();
|
||||
|
||||
if(ref != NULL && !FileIndex::isValid(ref))
|
||||
{
|
||||
unlockData() ;
|
||||
return false ;
|
||||
}
|
||||
// checked by FileIndex::extractData
|
||||
// if(ref != NULL && !FileIndex::isValid(ref))
|
||||
// {
|
||||
// unlockData() ;
|
||||
// return false ;
|
||||
// }
|
||||
|
||||
/* so cast *ref to a DirEntry */
|
||||
/* root case */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue