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,7 +54,12 @@ public:
checkStl.pushback();
checkStl.stlBoundries();
checkStl.find();
checkStl.size();
if (settings->_checkCodingStyle)
{
if (settings->_showAll)
checkStl.size();
}
}

View File

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