Fixed: with checkConst and checkVariableScope wanted still required "information" settings instead of "style".
This commit is contained in:
parent
132f0e12d1
commit
4fc7e86d7d
|
@ -1200,7 +1200,7 @@ void CheckClass::thisSubtractionError(const Token *tok)
|
|||
|
||||
void CheckClass::checkConst()
|
||||
{
|
||||
if (!_settings->isEnabled("information") || _settings->ifcfg)
|
||||
if (!_settings->isEnabled("style") || _settings->ifcfg)
|
||||
return;
|
||||
|
||||
// Don't check C# and JAVA classes
|
||||
|
|
|
@ -1397,7 +1397,7 @@ void CheckOther::memsetZeroBytesError(const Token *tok, const std::string &varna
|
|||
//---------------------------------------------------------------------------
|
||||
void CheckOther::checkVariableScope()
|
||||
{
|
||||
if (!_settings->isEnabled("information"))
|
||||
if (!_settings->isEnabled("style"))
|
||||
return;
|
||||
|
||||
const SymbolDatabase *symbolDatabase = _tokenizer->getSymbolDatabase();
|
||||
|
|
Loading…
Reference in New Issue