Fixed: with checkConst and checkVariableScope wanted still required "information" settings instead of "style".

This commit is contained in:
Edoardo Prezioso 2011-10-30 10:54:33 +01:00
parent 132f0e12d1
commit 4fc7e86d7d
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();