Revert "temporarily disable the 'object destroyed immediately' message"
This reverts commit fa94312c9a
.
This commit is contained in:
parent
66372d6015
commit
cd8ef1cded
|
@ -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| {");
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue