@@ -164,7 +164,7 @@ void ImportProject::fsSetIncludePaths(FileSettings& fs, const std::string &basep
164164 }
165165}
166166
167- ImportProject::Type ImportProject::import (const std::string &filename, Settings *settings, Suppressions *supprs, bool premium )
167+ ImportProject::Type ImportProject::import (const std::string &filename, Settings *settings, Suppressions *supprs)
168168{
169169 std::ifstream fin (filename);
170170 if (!fin.is_open ())
@@ -200,7 +200,7 @@ ImportProject::Type ImportProject::import(const std::string &filename, Settings
200200 return ImportProject::Type::BORLAND;
201201 }
202202 } else if (settings && supprs && endsWith (filename, " .cppcheck" )) {
203- if (importCppcheckGuiProject (fin, *settings, *supprs, premium )) {
203+ if (importCppcheckGuiProject (fin, *settings, *supprs)) {
204204 setRelativePaths (filename);
205205 return ImportProject::Type::CPPCHECK_GUI;
206206 }
@@ -1290,7 +1290,7 @@ static std::string istream_to_string(std::istream &istr)
12901290 return std::string (std::istreambuf_iterator<char >(istr), eos);
12911291}
12921292
1293- bool ImportProject::importCppcheckGuiProject (std::istream &istr, Settings &settings, Suppressions &supprs, bool premium )
1293+ bool ImportProject::importCppcheckGuiProject (std::istream &istr, Settings &settings, Suppressions &supprs)
12941294{
12951295 tinyxml2::XMLDocument doc;
12961296 const std::string xmldata = istream_to_string (istr);
@@ -1374,7 +1374,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings &setti
13741374 else if (strcmp (name, CppcheckXml::AddonsElementName) == 0 ) {
13751375 const auto & addons = readXmlStringList (node, " " , CppcheckXml::AddonElementName, nullptr );
13761376 temp.addons .insert (addons.cbegin (), addons.cend ());
1377- if (premium) {
1377+ if (settings. premium ) {
13781378 auto it = temp.addons .find (" misra" );
13791379 if (it != temp.addons .end ()) {
13801380 temp.addons .erase (it);
0 commit comments