This commit is contained in:
parent
b26b78b86d
commit
bc5023775d
|
@ -1629,10 +1629,10 @@ void CmdLineParser::printHelp() const
|
|||
mLogger.printRaw(oss.str());
|
||||
}
|
||||
|
||||
bool CmdLineParser::isCppcheckPremium() {
|
||||
Settings settings;
|
||||
settings.loadCppcheckCfg(); // TODO: how to handle errors?
|
||||
return startsWith(settings.cppcheckCfgProductName, "Cppcheck Premium");
|
||||
bool CmdLineParser::isCppcheckPremium() const {
|
||||
if (mSettings.cppcheckCfgProductName.empty())
|
||||
mSettings.loadCppcheckCfg();
|
||||
return startsWith(mSettings.cppcheckCfgProductName, "Cppcheck Premium");
|
||||
}
|
||||
|
||||
bool CmdLineParser::tryLoadLibrary(Library& destination, const std::string& basepath, const char* filename)
|
||||
|
|
|
@ -111,7 +111,7 @@ protected:
|
|||
void printHelp() const;
|
||||
|
||||
private:
|
||||
static bool isCppcheckPremium();
|
||||
bool isCppcheckPremium() const;
|
||||
|
||||
template<typename T>
|
||||
bool parseNumberArg(const char* const arg, std::size_t offset, T& num, bool mustBePositive = false)
|
||||
|
|
Loading…
Reference in New Issue