suppressed uninitialised memory leak in LocalDirectoryStorage

This commit is contained in:
csoler 2017-03-04 21:13:34 +01:00
parent b14e4d50cf
commit dec5c5c4b4
2 changed files with 7 additions and 1 deletions

View File

@ -306,6 +306,12 @@ void DirectoryStorage::checkSave()
/* Local Directory Storage */
/******************************************************************************************************************/
LocalDirectoryStorage::LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id)
: DirectoryStorage(own_id,fname)
{
mTSChanged = false ;
}
RsFileHash LocalDirectoryStorage::makeEncryptedHash(const RsFileHash& hash)
{
return RsDirUtil::sha1sum(hash.toByteArray(),hash.SIZE_IN_BYTES);

View File

@ -210,7 +210,7 @@ private:
class LocalDirectoryStorage: public DirectoryStorage
{
public:
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id) : DirectoryStorage(own_id,fname) {}
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id);
virtual ~LocalDirectoryStorage() {}
/*!