Skip to content

Commit 7324220

Browse files
committed
analyzerinfo.cpp: fixed uselessCallsSubstr selfcheck warning
1 parent f4d7113 commit 7324220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/analyzerinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void AnalyzerInformation::reopen(const std::string &buildDir, const std::string
307307
ifs.close();
308308

309309
std::string content = iss.str();
310-
content = content.substr(0, content.find("</analyzerinfo>"));
310+
content.resize(content.find("</analyzerinfo>"));
311311

312312
mOutputStream.open(analyzerInfoFile, std::ios::trunc);
313313
mOutputStream << content;

0 commit comments

Comments
 (0)