From 680fbfe6123ad126fa771b545d9a74af6489a466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Jul 2019 14:10:34 +0200 Subject: [PATCH] Fix Cppcheck warning, unused value --- lib/importproject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 28ed09d72..b8c67fa81 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -1075,7 +1075,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti else if (strcmp(child->Name(), Settings::SafeChecks::XmlExternalFunctions) == 0) temp.safeChecks.externalFunctions = true; 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) temp.safeChecks.externalVariables = true; else @@ -1099,6 +1099,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti settings->checkHeaders = temp.checkHeaders; settings->checkUnusedTemplates = temp.checkUnusedTemplates; settings->maxCtuDepth = temp.maxCtuDepth; + settings->safeChecks = temp.safeChecks; return true; }