Fix compile error in Linux

This commit is contained in:
Kirigaya Kazuto 2018-06-25 11:21:45 +08:00
parent 424a0afc76
commit b630a11dcc

View File

@ -24,10 +24,6 @@ DirWalk::DirWalk(const std::string& DirName)
{ {
_p->root = realname; _p->root = realname;
} }
else
{
_status = -1;
}
} }
DirWalk::~DirWalk() DirWalk::~DirWalk()
@ -41,7 +37,7 @@ bool DirWalk::isReady() const
return _p->dir != NULL; 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; dirent* file = NULL;
if ((file = readdir(Dir)) != 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; return _p->root;
} }