Fix compile error in Linux
This commit is contained in:
parent
424a0afc76
commit
b630a11dcc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user