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:
@@ -804,6 +804,7 @@ public:
|
||||
{
|
||||
if(!source->isInPlay())
|
||||
return 0;
|
||||
// TODO: C6246: Clarify e, is this independant of the "e" declared outside this scope?
|
||||
WEvent * e = NEW WEventVampire(victems[w],victems[w],source);
|
||||
game->receiveEvent(e);
|
||||
victems[w] = NULL;
|
||||
@@ -4704,6 +4705,7 @@ public:
|
||||
{
|
||||
if (value_before_modification)
|
||||
{
|
||||
// TODO: C6246: Clarify _target, is this independant of the "_target" declared as the member var of this class?
|
||||
Damageable * _target = (Damageable *) target;
|
||||
game->mLayers->stackLayer()->addDamage(source, _target, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user