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:
@@ -292,11 +292,11 @@ int GameStateMenu::nextDirectory(const char * root, const char * file)
|
||||
while (!found && (mDit = readdir(mDip)))
|
||||
{
|
||||
sprintf(mCurrentSetFileName, "%s/%s/%s", root, mDit->d_name, file);
|
||||
wagic::ifstream file(mCurrentSetFileName);
|
||||
if (file)
|
||||
wagic::ifstream setFile(mCurrentSetFileName);
|
||||
if (setFile)
|
||||
{
|
||||
sprintf(mCurrentSetName, "%s", mDit->d_name);
|
||||
file.close();
|
||||
setFile.close();
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user