Flagged numerous peices of code that have local variables that are masking either member variables or variables scoped outside the current scope.
I've marked all the ones I found with the following TODO comment: TODO: C6246: <blah blah> a few in particular are the ones related to "oneShot" and "_target". These are local variables that are declared that mask either a method parameter or a member variable.
This commit is contained in:
@@ -972,9 +972,10 @@ bool GameOptionAward::read(string input)
|
||||
int i;
|
||||
for (i = 0; i < 5; i++)
|
||||
tvals[i] = 0;
|
||||
i = 0;
|
||||
|
||||
string buf;
|
||||
for (size_t t = 0, i = 0; t < input.size(); t++)
|
||||
for (size_t t = 0; t < input.size(); t++)
|
||||
{
|
||||
if (!isdigit(input[t]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user