Add couple of missing path separator conversions.
This commit is contained in:
parent
4668e19060
commit
420099588f
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue