@@ -165,7 +165,7 @@ void ImportProject::fsSetIncludePaths(FileSettings& fs, const std::string &basep
165165 }
166166}
167167
168- ImportProject::Type ImportProject::import(const std::string &filename, Settings *settings, Suppressions *supprs, bool premium )
168+ ImportProject::Type ImportProject::import(const std::string &filename, Settings *settings, Suppressions *supprs)
169169{
170170 std::ifstream fin(filename);
171171 if (!fin.is_open())
@@ -201,7 +201,7 @@ ImportProject::Type ImportProject::import(const std::string &filename, Settings
201201 return ImportProject::Type::BORLAND;
202202 }
203203 } else if (settings && supprs && endsWith(filename, ".cppcheck")) {
204- if (importCppcheckGuiProject(fin, *settings, *supprs, premium )) {
204+ if (importCppcheckGuiProject(fin, *settings, *supprs)) {
205205 setRelativePaths(filename);
206206 return ImportProject::Type::CPPCHECK_GUI;
207207 }
@@ -1291,7 +1291,7 @@ static std::string istream_to_string(std::istream &istr)
12911291 return std::string(std::istreambuf_iterator<char>(istr), eos);
12921292}
12931293
1294- bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings &settings, Suppressions &supprs, bool premium )
1294+ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings &settings, Suppressions &supprs)
12951295{
12961296 tinyxml2::XMLDocument doc;
12971297 const std::string xmldata = istream_to_string(istr);
@@ -1375,7 +1375,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings &setti
13751375 else if (strcmp(name, CppcheckXml::AddonsElementName) == 0) {
13761376 const auto& addons = readXmlStringList(node, "", CppcheckXml::AddonElementName, nullptr);
13771377 temp.addons.insert(addons.cbegin(), addons.cend());
1378- if (premium) {
1378+ if (settings. premium) {
13791379 auto it = temp.addons.find("misra");
13801380 if (it != temp.addons.end()) {
13811381 temp.addons.erase(it);
0 commit comments