Revert "fix some things cppcheck found...some are TODO because i don't feel like investigating them"

This reverts commit 173575e835.
This commit is contained in:
DarthArgus
2015-03-26 00:00:15 -05:00
parent 38e4dfee11
commit db15932436
15 changed files with 18 additions and 68 deletions
@@ -278,9 +278,9 @@ void FileManifest::addNewManifestEntry(const char *fileName, int fileSize)
if (fileSize)
((insertReturn.first)->second)->size = fileSize;
// delete the new entry we created
delete entry;
}
delete entry;
#else
return;
#endif
@@ -299,7 +299,9 @@ void FileManifest::addStoredManifestEntry(const char *fileName, const char * sce
std::pair<ManifestMap::iterator, bool> insertReturn = s_manifest.insert(std::pair<const uint32, FileManifestEntry*>(crc, entry));
delete entry;
// if the insert failed, delete the entry we created
if (!insertReturn.second)
delete entry;
}
// -----------------------------------------------------------------------