Robert Reif: Fixed #1158 ((possible style) message with regular check)

This commit is contained in:
Daniel Marjamäki 2009-12-28 18:06:26 +01:00
parent 28f2bf2150
commit 61e61c1584
2 changed files with 10 additions and 2 deletions

View File

@ -54,8 +54,13 @@ public:
checkStl.pushback(); checkStl.pushback();
checkStl.stlBoundries(); checkStl.stlBoundries();
checkStl.find(); checkStl.find();
if (settings->_checkCodingStyle)
{
if (settings->_showAll)
checkStl.size(); checkStl.size();
} }
}
/** /**

View File

@ -89,8 +89,11 @@ private:
errout.str(""); errout.str("");
// Check.. // Check..
Settings settings;
settings._checkCodingStyle = true;
settings._showAll = true;
CheckStl checkStl; CheckStl checkStl;
checkStl.runSimplifiedChecks(&tokenizer, (const Settings *)0, this); checkStl.runSimplifiedChecks(&tokenizer, &settings, this);
} }