Add couple of missing path separator conversions.

This commit is contained in:
Kimmo Varis 2011-01-13 23:20:58 +02:00
parent 4668e19060
commit 420099588f
2 changed files with 2 additions and 2 deletions

View File

@ -459,7 +459,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
}
else
_pathnames.push_back(argv[i]);
_pathnames.push_back(Path::fromNativeSeparators(argv[i]));
}
if (_settings->isEnabled("unusedFunctions") && _settings->_jobs > 1)

View File

@ -81,7 +81,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
// Execute recursiveAddFiles() to each given file parameter
std::vector<std::string>::const_iterator iter;
for (iter = pathnames.begin(); iter != pathnames.end(); ++iter)
getFileLister()->recursiveAddFiles(filenames, iter->c_str());
getFileLister()->recursiveAddFiles(filenames, Path::toNativeSeparators(iter->c_str()));
for (iter = filenames.begin(); iter != filenames.end(); ++iter)
cppcheck->addFile(*iter);