Skip to content

Commit 473c2c4

Browse files
committed
checkersreport.cpp: use Settings::premium
1 parent 34b9c45 commit 473c2c4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/checkersreport.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
#include <unordered_set>
3131
#include <vector>
3232

33-
static bool isCppcheckPremium(const Settings& settings) {
34-
return (settings.cppcheckCfgProductName.compare(0, 16, "Cppcheck Premium") == 0);
35-
}
36-
3733
static int getMisraCVersion(const Settings& settings) {
3834
if (settings.premiumArgs.find("misra-c-2025") != std::string::npos)
3935
return 2025;
@@ -194,7 +190,7 @@ std::string CheckersReport::getReport(const std::string& criticalErrors) const
194190
fout << std::endl;
195191
}
196192

197-
const bool cppcheckPremium = isCppcheckPremium(mSettings);
193+
const bool cppcheckPremium = mSettings.premium;
198194

199195
auto reportSection = [&fout, cppcheckPremium]
200196
(const std::string& title,

0 commit comments

Comments
 (0)