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:
Phenom 2017-07-21 12:27:45 +02:00 committed by csoler
parent 1456bdd641
commit f18a842d9d
2 changed files with 2 additions and 2 deletions

View File

@ -576,7 +576,7 @@ bool LocalDirectoryStorage::getFileInfo(DirectoryStorage::EntryIndex i,FileInfo&
info.transfered = 0;
info.tfRate = 0; /* in kbytes */
info.downloadStatus = FT_STATE_COMPLETE ;
std::list<TransferInfo> peers;
//std::list<TransferInfo> peers;
info.priority = SPEED_NORMAL;
info.lastTS = 0;

View File

@ -97,7 +97,7 @@ class DirectoryStorage
class FileIterator
{
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& operator++() ;