diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-11 21:39:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-11 21:39:42 +0300 |
commit | a721e4898f71a68ecb916940864599d462880e5b (patch) | |
tree | 50442e8b86707221f498ea0f304a5314a0e67430 /src/fs/virtfs/virtfs.cpp | |
parent | 81b97b30afa0c72e5ff17162c7d1fa88dd6187fb (diff) | |
download | plus-a721e4898f71a68ecb916940864599d462880e5b.tar.gz plus-a721e4898f71a68ecb916940864599d462880e5b.tar.bz2 plus-a721e4898f71a68ecb916940864599d462880e5b.tar.xz plus-a721e4898f71a68ecb916940864599d462880e5b.zip |
Fix different issues found by automatic checks.
Diffstat (limited to 'src/fs/virtfs/virtfs.cpp')
-rw-r--r-- | src/fs/virtfs/virtfs.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fs/virtfs/virtfs.cpp b/src/fs/virtfs/virtfs.cpp index 9cc36fda8..dd305303a 100644 --- a/src/fs/virtfs/virtfs.cpp +++ b/src/fs/virtfs/virtfs.cpp @@ -36,7 +36,6 @@ #include "fs/virtfs/zip.h" #include "utils/checkutils.h" -#include "utils/dtor.h" #include "utils/stringutils.h" #include "debug.h" @@ -107,7 +106,7 @@ namespace VirtFs { FOR_EACH (std::vector<VirtFsEntry*>::const_iterator, it, mEntries) { - VirtFsEntry *const entry = *it; + const VirtFsEntry *const entry = *it; if (entry->root == root && entry->type == type) { @@ -282,7 +281,7 @@ namespace VirtFs std::string rootDir = newDir; if (findLast(rootDir, std::string(dirSeparator)) == false) rootDir += dirSeparator; - VirtFsEntry *const entry = searchEntryByRootInternal(rootDir); + const VirtFsEntry *const entry = searchEntryByRootInternal(rootDir); if (entry != nullptr) { reportAlways("VirtFs::addToSearchPath already exists: %s", @@ -506,7 +505,6 @@ namespace VirtFs else delete entry; } -// delete_all(mEntries); mEntries.clear(); return true; } |