mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Fix CppCheck in directory_storage.h and directory_storage.cc
/libretroshare/src/file_sharing/directory_storage.h💯 warning:
Cppcheck(noExplicitConstructor): Class 'FileIterator' has a constructor
with 1 argument that is not explicit.
/libretroshare/src/file_sharing/directory_storage.cc:579: warning:
Cppcheck(unusedVariable): Unused variable: peers
This commit is contained in:
parent
1456bdd641
commit
f18a842d9d
@ -576,7 +576,7 @@ bool LocalDirectoryStorage::getFileInfo(DirectoryStorage::EntryIndex i,FileInfo&
|
|||||||
info.transfered = 0;
|
info.transfered = 0;
|
||||||
info.tfRate = 0; /* in kbytes */
|
info.tfRate = 0; /* in kbytes */
|
||||||
info.downloadStatus = FT_STATE_COMPLETE ;
|
info.downloadStatus = FT_STATE_COMPLETE ;
|
||||||
std::list<TransferInfo> peers;
|
//std::list<TransferInfo> peers;
|
||||||
|
|
||||||
info.priority = SPEED_NORMAL;
|
info.priority = SPEED_NORMAL;
|
||||||
info.lastTS = 0;
|
info.lastTS = 0;
|
||||||
|
@ -97,7 +97,7 @@ class DirectoryStorage
|
|||||||
class FileIterator
|
class FileIterator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FileIterator(DirIterator& d); // crawls all files in specified directory
|
explicit FileIterator(DirIterator& d); // crawls all files in specified directory
|
||||||
FileIterator(DirectoryStorage *d,EntryIndex e); // crawls all files in specified directory
|
FileIterator(DirectoryStorage *d,EntryIndex e); // crawls all files in specified directory
|
||||||
|
|
||||||
FileIterator& operator++() ;
|
FileIterator& operator++() ;
|
||||||
|
Loading…
Reference in New Issue
Block a user