Fix Cppcheck warning, unused value
This commit is contained in:
parent
c8bc88e7e2
commit
680fbfe612
|
@ -1075,7 +1075,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
|
||||||
else if (strcmp(child->Name(), Settings::SafeChecks::XmlExternalFunctions) == 0)
|
else if (strcmp(child->Name(), Settings::SafeChecks::XmlExternalFunctions) == 0)
|
||||||
temp.safeChecks.externalFunctions = true;
|
temp.safeChecks.externalFunctions = true;
|
||||||
else if (strcmp(child->Name(), Settings::SafeChecks::XmlInternalFunctions) == 0)
|
else if (strcmp(child->Name(), Settings::SafeChecks::XmlInternalFunctions) == 0)
|
||||||
temp.safeChecks.internalFunctions = false; // This is not available in CLI
|
temp.safeChecks.internalFunctions = true;
|
||||||
else if (strcmp(child->Name(), Settings::SafeChecks::XmlExternalVariables) == 0)
|
else if (strcmp(child->Name(), Settings::SafeChecks::XmlExternalVariables) == 0)
|
||||||
temp.safeChecks.externalVariables = true;
|
temp.safeChecks.externalVariables = true;
|
||||||
else
|
else
|
||||||
|
@ -1099,6 +1099,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
|
||||||
settings->checkHeaders = temp.checkHeaders;
|
settings->checkHeaders = temp.checkHeaders;
|
||||||
settings->checkUnusedTemplates = temp.checkUnusedTemplates;
|
settings->checkUnusedTemplates = temp.checkUnusedTemplates;
|
||||||
settings->maxCtuDepth = temp.maxCtuDepth;
|
settings->maxCtuDepth = temp.maxCtuDepth;
|
||||||
|
settings->safeChecks = temp.safeChecks;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue