Revert "temporarily disable the 'object destroyed immediately' message"

This reverts commit fa94312c9a.
This commit is contained in:
Daniel Marjamäki 2010-10-03 18:05:08 +02:00
parent 66372d6015
commit cd8ef1cded
2 changed files with 0 additions and 6 deletions

View File

@ -3865,10 +3865,6 @@ void CheckOther::checkMisusedScopedObject()
unsigned int depth = 0;
std::string className = "";
// This condition can be removed after the release. it is here because of #2072
if (!_settings->inconclusive)
return;
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
{
withinFunction |= Token::Match(tok, ") const| {");

View File

@ -126,7 +126,6 @@ private:
// Check..
Settings settings;
settings._checkCodingStyle = true;
settings.inconclusive = true;
CheckOther checkOther(&tokenizer, &settings, this);
// Clear the error buffer..
@ -3040,7 +3039,6 @@ private:
tokenizer.simplifyTokenList();
Settings settings;
settings.inconclusive = true;
CheckOther checkOther(&tokenizer, &settings, this);
checkOther.checkMisusedScopedObject();