From b630a11dcc291fe108efbc86f78fc6bea91cb9d2 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Mon, 25 Jun 2018 11:21:45 +0800 Subject: [PATCH] Fix compile error in Linux --- FileWrapper_Lin.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; }