From d1bb0465b8bb61776bfb39e0b42690bf1690be00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 4 May 2019 11:58:03 +0200 Subject: [PATCH] Fixed 2 Cppcheck warnings --- lib/analyzerinfo.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/analyzerinfo.cpp b/lib/analyzerinfo.cpp index 866e697cc..0cca44567 100644 --- a/lib/analyzerinfo.cpp +++ b/lib/analyzerinfo.cpp @@ -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; } }