From deb643a6371a403f71e16c6b9011038ca99eb74a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 May 2014 16:07:04 +0300 Subject: Remove realpath usage. --- src/lintmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp index 8acb622..ec3c085 100644 --- a/src/lintmanager.cpp +++ b/src/lintmanager.cpp @@ -82,12 +82,12 @@ void LintManager::enumFiles(std::string path) const std::string file = next_file->d_name; if (file != "." && file != "..") { - char *realPath = realpath((path + file).c_str(), nullptr); - stat(realPath, &s); + const std::string name = path + file; + stat(name.c_str(), &s); if (S_ISDIR(s.st_mode)) - dirs.push_back(path + file); + dirs.push_back(name); else - processFile(realPath); + processFile(name); } } if (dir) -- cgit v1.2.3-70-g09d2