Fixed 2 Cppcheck warnings
This commit is contained in:
parent
604a13a22b
commit
d1bb0465b8
|
@ -51,15 +51,11 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
|
|||
std::ofstream fout(filesTxt);
|
||||
for (const std::string &f : sourcefiles) {
|
||||
const std::string afile = getFilename(f);
|
||||
if (fileCount.find(afile) == fileCount.end())
|
||||
fileCount[afile] = 0;
|
||||
fout << afile << ".a" << (++fileCount[afile]) << "::" << Path::simplifyPath(Path::fromNativeSeparators(f)) << '\n';
|
||||
}
|
||||
|
||||
for (const ImportProject::FileSettings &fs : fileSettings) {
|
||||
const std::string afile = getFilename(fs.filename);
|
||||
if (fileCount.find(afile) == fileCount.end())
|
||||
fileCount[afile] = 0;
|
||||
fout << afile << ".a" << (++fileCount[afile]) << ":" << fs.cfg << ":" << Path::simplifyPath(Path::fromNativeSeparators(fs.filename)) << std::endl;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue