diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-02 04:28:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-02 04:55:18 +0300 |
commit | 4b1ca08f26152fbcfb5eb838d271fdd88c381eca (patch) | |
tree | a005f6414ead9ae4ee287e6d198bab68ad6bdf63 /src/fs/virtfs/virtfszip.cpp | |
parent | ce9dd5dfa8e49e5204f25e079c1283ab6173b7cb (diff) | |
download | mv-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.gz mv-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.bz2 mv-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.tar.xz mv-4b1ca08f26152fbcfb5eb838d271fdd88c381eca.zip |
Add base class for VirtDirEntry and VirtZipEntry.
Diffstat (limited to 'src/fs/virtfs/virtfszip.cpp')
-rw-r--r-- | src/fs/virtfs/virtfszip.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/virtfs/virtfszip.cpp b/src/fs/virtfs/virtfszip.cpp index 437a81466..8ee39a8d9 100644 --- a/src/fs/virtfs/virtfszip.cpp +++ b/src/fs/virtfs/virtfszip.cpp @@ -53,7 +53,7 @@ namespace VirtFsZip { FOR_EACH (std::vector<VirtZipEntry*>::const_iterator, it, mEntries) { - if ((*it)->mArchiveName == archiveName) + if ((*it)->root == archiveName) return *it; } return nullptr; @@ -195,7 +195,7 @@ namespace VirtFsZip FOR_EACH (std::vector<VirtZipEntry*>::iterator, it, mEntries) { VirtZipEntry *const entry = *it; - if (entry->mArchiveName == oldDir) + if (entry->root == oldDir) { logger->log("Remove virtual zip: " + oldDir); mEntries.erase(it); @@ -220,7 +220,7 @@ namespace VirtFsZip FOR_EACH (std::vector<VirtZipEntry*>::iterator, it, mEntries) { VirtZipEntry *const entry = *it; - if (entry->mArchiveName == oldDir) + if (entry->root == oldDir) { logger->log("Remove virtual zip: " + oldDir); mEntries.erase(it); @@ -278,7 +278,7 @@ namespace VirtFsZip VirtZipEntry *restrict const entry = searchZipEntryByNameWithDir( filename); if (entry != nullptr) - return entry->mArchiveName; + return entry->root; return std::string(); } |