diff --git a/FileWrapper_Lin.cpp b/FileWrapper_Lin.cpp index 8bb2492..193efe6 100644 --- a/FileWrapper_Lin.cpp +++ b/FileWrapper_Lin.cpp @@ -24,10 +24,6 @@ DirWalk::DirWalk(const std::string& DirName) { _p->root = realname; } - else - { - _status = -1; - } } DirWalk::~DirWalk() @@ -41,7 +37,7 @@ bool DirWalk::isReady() const return _p->dir != NULL; } -int DirWalk::next(std:; string& name, bool& is_dir) +int DirWalk::next(std::string& name, bool& is_dir) { dirent* file = NULL; if ((file = readdir(Dir)) != NULL) @@ -70,7 +66,7 @@ int DirWalk::next(std:; string& name, bool& is_dir) } } -std::string DirWalk::getroot() +std::string DirWalk::getroot() const { return _p->root; }