summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfsdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-05 01:02:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-05 01:24:38 +0300
commit7594ad94dfdf580a82fb07ddb346442160b3d91d (patch)
tree9c9d0fc0b9ea0b7b1f4c550454ed0e3b458b7e2d /src/fs/virtfs/virtfsdir.cpp
parent78195f2492032637bfa9ce663ae7903dbf07f609 (diff)
downloadplus-7594ad94dfdf580a82fb07ddb346442160b3d91d.tar.gz
plus-7594ad94dfdf580a82fb07ddb346442160b3d91d.tar.bz2
plus-7594ad94dfdf580a82fb07ddb346442160b3d91d.tar.xz
plus-7594ad94dfdf580a82fb07ddb346442160b3d91d.zip
Add VirtFs namespace into all files in virtfs directory.
Diffstat (limited to 'src/fs/virtfs/virtfsdir.cpp')
-rw-r--r--src/fs/virtfs/virtfsdir.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fs/virtfs/virtfsdir.cpp b/src/fs/virtfs/virtfsdir.cpp
index 902e686c0..fce38b023 100644
--- a/src/fs/virtfs/virtfsdir.cpp
+++ b/src/fs/virtfs/virtfsdir.cpp
@@ -47,6 +47,9 @@
extern const char *dirSeparator;
+namespace VirtFs
+{
+
namespace
{
std::string mWriteDir;
@@ -169,7 +172,7 @@ namespace VirtFsDir
const std::string &dirName A_UNUSED,
std::string &realDir)
{
- VirtDirEntry *const dirEntry = static_cast<VirtDirEntry*>(entry);
+ DirEntry *const dirEntry = static_cast<DirEntry*>(entry);
if (Files::existsLocal(dirEntry->root + filename))
{
realDir = dirEntry->userDir;
@@ -458,7 +461,7 @@ namespace VirtFsDir
const std::string &restrict filename,
int &restrict fileSize)
{
- const VirtDirEntry *const dirEntry = static_cast<VirtDirEntry*>(entry);
+ const DirEntry *const dirEntry = static_cast<DirEntry*>(entry);
const std::string path = entry->root + filename;
if (Files::existsLocal(path) == false)
return nullptr;
@@ -663,4 +666,6 @@ namespace VirtFsDir
closedir(dir);
}
}
+} // namespace VirtFsDir
+
} // namespace VirtFs