Fix Cppcheck warning
This commit is contained in:
parent
2da3123db2
commit
a8788d7fc7
|
@ -757,7 +757,7 @@ void CppCheck::analyseWholeProgram(const std::string &buildDir, const std::map<s
|
||||||
if (firstColon == lastColon)
|
if (firstColon == lastColon)
|
||||||
continue;
|
continue;
|
||||||
const std::string xmlfile = buildDir + '/' + filesTxtLine.substr(0,firstColon);
|
const std::string xmlfile = buildDir + '/' + filesTxtLine.substr(0,firstColon);
|
||||||
const std::string sourcefile = filesTxtLine.substr(lastColon+1);
|
//const std::string sourcefile = filesTxtLine.substr(lastColon+1);
|
||||||
|
|
||||||
tinyxml2::XMLDocument doc;
|
tinyxml2::XMLDocument doc;
|
||||||
tinyxml2::XMLError error = doc.LoadFile(xmlfile.c_str());
|
tinyxml2::XMLError error = doc.LoadFile(xmlfile.c_str());
|
||||||
|
|
Loading…
Reference in New Issue