Updated wrong comments (looks like after copy&paste).
No code change.
This commit is contained in:
parent
3d648b92ab
commit
3a40c33d7b
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Buffer overrun..
|
||||
// Auto variables checks
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "checkautovariables.h"
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
checkAutoVariables.autoVariables();
|
||||
}
|
||||
|
||||
/** Check for buffer overruns */
|
||||
/** Check auto variables */
|
||||
void autoVariables();
|
||||
|
||||
private:
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Buffer overrun..
|
||||
// Dangerous functions
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "checkdangerousfunctions.h"
|
||||
|
@ -43,10 +43,6 @@ namespace
|
|||
CheckDangerousFunctionsClass instance;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Dangerous functions
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void CheckDangerousFunctionsClass::dangerousFunctions()
|
||||
{
|
||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
checkDangerousFunctionsClass.dangerousFunctions();
|
||||
}
|
||||
|
||||
/** Check for buffer overruns */
|
||||
/** Check for dangerous functions */
|
||||
void dangerousFunctions();
|
||||
|
||||
private:
|
||||
|
|
|
@ -53,7 +53,7 @@ private:
|
|||
// Clear the error buffer..
|
||||
errout.str("");
|
||||
|
||||
// Check for buffer overruns..
|
||||
// Check auto variables
|
||||
Settings settings;
|
||||
settings._showAll = true;
|
||||
CheckAutoVariables checkAutoVariables(&tokenizer, &settings, this);
|
||||
|
|
|
@ -53,7 +53,7 @@ private:
|
|||
// Clear the error buffer..
|
||||
errout.str("");
|
||||
|
||||
// Check for buffer overruns..
|
||||
// Check for dangerous functions..
|
||||
Settings settings;
|
||||
settings._showAll = true;
|
||||
CheckDangerousFunctionsClass checkDangerousFunctions(&tokenizer, &settings, this);
|
||||
|
|
Loading…
Reference in New Issue