Fixed 2 Cppcheck warnings

This commit is contained in:
Daniel Marjamäki 2019-05-04 11:58:03 +02:00
parent 604a13a22b
commit d1bb0465b8
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}
}